Ever since my host upgraded my admin control panel to Plesk 8.3.0, I have been running into problem backing up large MySQL databases using PhpMyAdmin. For whatever reason, the export function will only generate 0 byte SQL backup file. Moreover, it’s becoming quite a chore to backup 9 databases spread across 7 domains — there’s a lot of clicking in Plesk and PhpMyAdmin to accomplish this. As such, I had to look for and easy way to backup large MySQL database that doesn’t require PhpMyAdmin.

Photo by Melete via Flickr
So I did a little digging today and found an alternative that helps you easily backup large MySQL databases. The solution is to backup your MySQL databases through SSH. Here are the steps.
mysqldump --add-drop-table -u db_username -p db_name > mybackup.sql
About the command:
- Omit the –add-drop-table argument if you’ll want to merge this backup with an existing database upon restore
- Replace db_username with the name of your database user
- Replace db_name with the name of your database
- Replace mybackup.sql with the name of your backup file
Note: You can find your database name, user, and password information in your wp-config.php file (if you are using WordPress).
That should be it. The command executes very fast and you should be able to FTP into your web site and find the backup file in the folder you created earlier. If you have multiple databases, all you have to do is replace the database name, user, password, and backup filename information.

All posts by Pinyo
If your trackback does not show in 24 hours, please resend to this trackback URI.
I am having similar problem. Thank you for sharing this trick. It works perfectly!