Steps to take backup database from shell

kumkumsharma

Administrator
Staff member
You can use below command to take backup of your database.

Code:
# mysqldump database_name > backup.sql
After that you can restore your database with below command:

Code:
# mysql database_name
 
Top