You can also try this one to copy entire mysql db
Quote:
|
mysqldump --alldatabases | mysql -h 'other host name'
|
If you want to copy one db
Quote:
|
mysqldump dbname | mysql -h 'other host name' dbname
|
To copy only one table
Quote:
|
mysqldump dbname tablename | mysql -h 'other host name' dbname
|
Probably you'll need to use the -u and -p options if you do not have the client login set in your config file. I've assumed that you have password root--. Also you'll need to be a user that has create and drop privileges at whatever level you required to perform the copy. Additionally you'll have to enable mysql access to the DB on the other host's server machine.