I need to copy a database from one machine to another. I currently have a windows machine with a database called "contact" and a linux box with basically a fresh install of MySQL on it. What's the best way to get the contact database onto the linux box?
Shutdown the MySQL service on both sides and do a straight file copy, I think. All the files from /data/contact/ to the corresponding directory on the new machine.
the datafile in mysql is ONE file (i forgot what type)
you just need to copy it from machine to the other (wether they are windows or linux...)
and restart the mysql daemon on the unix machine and it should pick up the database by itself
I will research to find what is the file type of the datafile for you
or you can do a dump (mysqldump --tab=/path/to/some/dir --opt --full)
if you choose the option of copyiing, the files you have to copy are of the type (`*.frm', `*.MYD' and `*.MYI' files), as long as the server isn't updating anything.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.