mysqldump of remote database to local machine command
This post was written 6 years ago.
Fri, 23 Dec 2005
example
#mysqldump --host=the.remotedatabase.com -u yourusername -p yourdatabasename > /Users/rick/backups/foo.sql
#mysqldump --host=the.remotedatabase.com -u yourusername -p yourdatabasename > /Users/rick/backups/foo.sql
This post was written 6 years ago, which in internet time is really, really old. This means that what is written above, and the links contained within, may now be obsolete, inaccurate or wildly out of context, so please bear that in mind :)
Comments
You left out a '-' before the host. The correct syntax is:
#mysqldump --host=the.remotedatabase.com -u yourusername -p yourdatabasename > /Users/rick/backups/foo.sql
Philip Thompson 2008-10-31 18:21:38
#mysqldump --host=the.remotedatabase.com -u yourusername -p yourdatabasename > /Users/rick/backups/foo.sql
Lenni 2009-08-22 11:00:49