Last active
August 29, 2015 14:23
-
-
Save felipebizz/5f2be00340b8ad60ba8f to your computer and use it in GitHub Desktop.
How To Backup MySQL Databases on an Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#create a Dump | |
mysqldump -u username -p database_to_backup > backup_name.sql | |
#Restoring | |
mysql -u username -p | |
CREATE DATABASE database_name; | |
exit | |
mysql -u username -p database_name < backup_name.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment