Forum Moderators: phranque

Message Too Old, No Replies

Transffering a large databases

how can transfer a large sql database over the internet

         

akande

6:22 pm on May 27, 2003 (gmt 0)

10+ Year Member



Hello everyone,

I have recently changed web hosts. I have a very serious problem. I need to transfer a MySQL database which is around 2GB is size from server A to server B.

I can't download the content to my computer because the database size is too large and my connection is too slow.

I also do not have permission to create files on the server because the OS's permissions are messed up so I cannot delete or create files.

Can anyone please assist me with this dilemma?

By the way, Server A is running Freebsd and Server B is running Redhat

Thanks a lot.

jatar_k

7:06 pm on May 27, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



what about overwriting an existing file on the server with the dump(since you can't create one)?

akande

7:27 pm on May 27, 2003 (gmt 0)

10+ Year Member



How can I do that? I only know how to create a dump to zip but thats in the CP which only saves to disk.

jatar_k

7:54 pm on May 27, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



if you can log into mysql via ssh you can manually use the mysqldump [mysql.com] command. I don't how this will help you though. You would still need to retrieve the file somehow to transfer it to the new host.

You are in a bit of a bad spot. Can the old host help you in anyway?

dingman

4:28 pm on May 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you have shell access on the new server? if so, perhaps you can download directly from the old server to the new server. That way, you use the two servers' internet connections, which are much more likely to be fast and reliable enough for a 2gb transfer to complete.

sun818

4:40 pm on May 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Related thread also referencing mysqldump:
[webmasterworld.com...]

akande

7:15 pm on Jun 3, 2003 (gmt 0)

10+ Year Member



Thank you everyone,

I figured out how to solve the problem. It was so easy and starting a thread almost seems pointless.

1) Call the host and request them to sort out your server permissions

2) Log on to the server and create a sql dump and zip it up

3) Use wget from server B to grab the dump

4) unzip and upload to the new database.

Simple