How do I dump a mySQL database via command line?


If you are familar with command line access via SSH you can issue the below command to produce a backup file of your mySQL database.

mysqldump db_name -u db_username -p db_password > db_backup.sql

  Print