Backing up a mysql database in Linux

Posted 3 years ago

Run the below command to perform the backup - you will be prompt for your database password after submitting your command

mysqldump -u database_user -p database_name > backup_name.sql

The -p flag stands for password