|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Is this possible and how is it done? I'm changing servers and I want to keep the database that I already have created. Thanks in advance.
|
|
#2
|
|||
|
|||
|
How about making dumps of the databases (using phpMyAdmin e.g.) ?
|
|
#3
|
|||
|
|||
|
mysqldump --opt database > backup-file.sql
|
|
#4
|
|||
|
|||
|
Thanks for the ideas but I'm kinda looking for a way to do it on the MySQL command line. If that's not possible could you explain more about teh phpMyAdmin thing that you mentioned? Thanks for your qucik responses and help.
|
|
#5
|
|||
|
|||
|
mysqldump is command line
(a separate program that's installed when you install mysql mind you) so instead of starting up mysql mysqldump -u username -p databasename >backup.sql |
|
#6
|
|||
|
|||
|
That's exactly what I needed. Thanks a lot.
|
|
#7
|
|||
|
|||
|
If you have root access, I think that you can just move the database directory in mysql's data directory from one system to another. I tried this awhile ago and it seemed to work ok.
|
|
#8
|
|||
|
|||
|
That *usually* works. However, if there is any version difference between the mysql servers involved you might run into a problem.
|
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Moving MySQL databases from one server to another |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|