Skip to content

Instantly share code, notes, and snippets.

@reiro
Created June 1, 2015 13:36
Show Gist options
  • Save reiro/ffc179bb938b324824e3 to your computer and use it in GitHub Desktop.
Save reiro/ffc179bb938b324824e3 to your computer and use it in GitHub Desktop.
Export and import mysql db
mysqldump db_name > backup-file.sql
mysql -u username -p database_name --force < file.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment