Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
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
mysql -u username -p
CREATE DATABASE database_name;
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