Home >> MySQL >> How to take Backup & Restore Database in MySQL

How to take Backup & Restore Database in MySQL

mysqlUsing mysqldump, you can backup a local database and restore it on a remote database at the same time, using a single command.
An examples on how to use mysqldump to backup and restore

To backup: # mysqldump -u root -p(root_password) (database_name) > filename.sql

To restore: # mysql -u root -p (root_password) (database_name) < filename.sql

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*