Skip to content

Instantly share code, notes, and snippets.

@scottoffen
Created April 12, 2014 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottoffen/10560821 to your computer and use it in GitHub Desktop.
Save scottoffen/10560821 to your computer and use it in GitHub Desktop.
Backup and Restore MySQL Databases
mysqldump -u [username] -p [schema] > filename_yyyy.mm.dd.sql
mysql -u [username] -p [schema] < filename_yyyy.mm.dd.sql
-- You will be prompted to provide the password each time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment