Skip to content

Instantly share code, notes, and snippets.

@felipebizz
Last active Aug 29, 2015
Embed
What would you like to do?
How To Backup MySQL Databases on an Ubuntu
#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