Skip to content

Instantly share code, notes, and snippets.

@rajraj
Created February 15, 2012 09:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajraj/1834639 to your computer and use it in GitHub Desktop.
Save rajraj/1834639 to your computer and use it in GitHub Desktop.
Backup and Restore MySql Database
# Backup Mysql database
$ mysqldump -u root -p contracts_production > contracts.sql
# Restore Mysql database from sql file
$ mysql -u root -p contracts_production < contracts.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment