mysqldump of remote database to local machine command

example

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

2 Responses to “mysqldump of remote database to local machine command”

  1. Philip Thompson Says:

    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

  2. Lenni Says:

    @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

Leave a Reply