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

archived comments
Hi Rick,
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
@Philip: I have copied your command to my terminal and it ends up with the wrong sort of hyphen. I think it should be:

#mysqldump --host=the.remotedatabase.com -u yourusername -p yourdatabasename > /Users/rick/backups/foo.sql

Lenni 2009-08-22 11:00:49
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
blog comments powered by Disqus