Yes. Certainly by a less direct method, possibly by a more direct method.
If you use mysqldump to output the SQL code to reproduce your database, that data created is completely portable.
Since MySQL creates a filesystem directory for every database, and files on the filesystem for every table, you can move data by simply copying those files across. This works between two MySQL systems on two different Linux boxes. I don't know about Win32->Linux.
I just copied all the files from C:\mysql\data into /usr/local/mysql/data, and did [tt]`chown mysql *'[/tt] and [tt]`chgrp mysql[/tt] *'. Flawless as far as I know.
Just make sure the server is not running or all the tables are locked when copying or they might end up corrupt. If bandwidth is an issue you do not need move index files, you can rebuild those later.
Check the mysqlhostcopy.pl script, its a great tool for this kind of stuff, it even has some support for scp.
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.