MySql Backup and Restore – A Complete Guide

Generate the backup of a single database

mysqldump -u root -p sakila > C:\MySQLBackup\sakila_20200424.sql

Generate the backup of multiple databases or all the databases

mysqldump -u root -p --databases sakila employees > C:\MySQLBackup\sakila_employees_20200424.sql

Generate the backup of database structure

mysqldump -u root -p --no-data sakila > C:\MySQLBackup\sakila_objects_definition_20200424.sql

Generate the backup of a specific table

mysqldump -u root -p sakila actor payment > C:\MySQLBackup\actor_payment_table_20200424.sql
Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x