You can use below command to take backup of your database.
After that you can restore your database with below command:
Code:
# mysqldump database_name > backup.sql
Code:
# mysql database_name