you can use mysqldump:
will login as USER (and prompt for password) and dump the contents of DATABASE to file.sqlCode:mysqldump -u USER -p DATABASE > file.sql
Then on the new server, run:
Make sure the charsets match, I've had troubles with this when going from different versions of mysql.Code:mysql -u USER -p DATABASE < file.sql


Reply With Quote
Bookmarks