Skip to content

Instantly share code, notes, and snippets.

@tokenvolt
Created February 17, 2014 14:42
Show Gist options
  • Select an option

  • Save tokenvolt/9051844 to your computer and use it in GitHub Desktop.

Select an option

Save tokenvolt/9051844 to your computer and use it in GitHub Desktop.
// backup
mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql
// restore
mysql -u root -p[root_password] [database_name] < dumpfilename.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment