Hard Hat Hosting - "Virtual Dedicated Server" web hosting

How can I dump a MySQL database from the command line?

Original URL: http://help.hardhathosting.com/question.php/124

From the SSH command line:

mysqldump -h localhost DATABASE > DATABASE.sql
Replace DATABASE with the name of your database.

NOTE: Accounts created before July 7th, 2003 will want to use:

/usr/local/mysql/bin/mysqldump -h localhost DATABASE > DATABASE.sql

Back to original article