![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Nov 2001
Posts: 830
|
Moving MySQL db's
I'm moving servers and need to move several databases
Can anyone point me to some tutorials to make this as easy and pain free as possible ? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jan 2002
Posts: 971
|
just dump the databases and recreate them on the new server - if you are using a tool like phpMyAdmin, then it is easy unless your db's are of a kind i dont know about...
__________________
Signature Spot - USD 5000 / month |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Feb 2002
Location: Free Speech Land
Posts: 9,484
|
If it's a large database, I don't know how well PHPMyAdmin will do with dumping it. I would do it using telnet if I was you. Just dump it to a directory, then copy it to your new server and recreate it there.
Looking.... I just found it. Here is a detailed page on how to move a MySQL database from one server to another: http://www.vbulletin.com/manual/movingservers.html |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Nov 2001
Posts: 830
|
Thanks mr fiction
that should be enough to get me started, I'll bumble my way through learning as i go. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jul 2001
Location: See sig
Posts: 6,989
|
Just moved a server with a load of MySQL stuff on it. We used phpmyadmin as it made life soooo much easier.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Mar 2002
Location: state of missery
Posts: 221
|
Ted
A lot of the better hosting companies out there will move your db's for you if you ask. If you have a cut rate host who only wants to hear from you when you send money then the advice others have given is at least on the right track. I know I recently moved some db's from one server to another and I just asked my host to do it and a few minutes later it was done. Call me lazy if ya want ![]() kicks |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Jun 2001
Location: ONLINE
Posts: 330
|
You would have to use mysqldump in order to dump the data and the structure, and mysql to import the database from the .sql file created on your new server.
telnet or ssh into your box, and you would need to execute this line from your command line mysqldump -u username -p --opt databasename > backup-file.sql You will be asked for your password, then, move the backup-file.sql to your new server, and create a new database , then use the mysql command to import the file into your new database mysql -u username -p databasename < backup-file.sql HIt me up via icq at 118997859 if you have any further problems. Midnight |
![]() |
![]() ![]() ![]() ![]() ![]() |