Categories
Uncategorized

MySQL backups

Back up a database

mysqldump -u [username] –p[password] [database_name] > [dump_file.sql]

Restore a database

mysql -u [username] –p[password] [database_name] < [dump_file.sql]

Leave a Reply

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