Created
October 16, 2014 15:13
-
-
Save ianthekid/7b4d3fbf0e3ea74378ec to your computer and use it in GitHub Desktop.
mysql export and import via ssh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Export database | |
| */ | |
| mysqldump -u $username -p -h $host $database > database_backup.sql | |
| /* | |
| * Import database | |
| */ | |
| mysql -u $username -p $database < database_backup.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment