This tutorial shows how to take backup and how to restore the MySQL database. Backuping the database is very important for the system administrator.
This backups can be automated using the cron job. Here i am using the manual utility “mysqldump” for taking the backup and restoring the database.
Backup MySQL Database:
There should not be any space between -p and password.
Once backup done, If required you can restore by using the following command.
Restore MySQL Database:
That’s All. You can also use the phpMyAdmin to backup and restore databases.