June 2016
Beginner
456 pages
9h 31m
English
In this recipe, we will learn how to back up the MySQL database.
You will need administrative access to the MySQL database.
Follow these steps to set up the backups:
mysqldump tool to back up the MySQL database as follows:
$ mysqldump -h localhost -u admin -p mydb > mydb_backup.sql
--all-databases flag to the preceding command:
$ mysqldump --all-databases -u admin -p alldb_backup.sql
mysqldump ...Read now
Unlock full access