Wednesday, 25 July 2018

MySQL: Backup and Restore Database using mysqldump

In this post, I am sharing a script for performing Backup and restoring of MySQL Database using Mysqldump.
Mysqldump is an important tool for MySQL Server, and it creates a *.sql file with database structure and data. It also includes all possible table lock and objects existence script.
I am sharing different syntax and scripts for performing the Backup and Restore of a single database or multiple databases.
Syntax and Command to take the backup of Single Database:
Syntax and Command for restoring of Single Database:
The new blank database requires being created before any restore operation.
Command to take backup of multiple databases:
Command to take backup of all databases:

0 comments:

Post a Comment