Last active
April 28, 2017 05:50
-
-
Save trungpv1601/649bd3dcc772264783e9bc7dd57c2116 to your computer and use it in GitHub Desktop.
Backup & Restore Mysql gzip
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
// Backup | |
mysqldump -u root -p databasename | gzip > databasename.sql.gz | |
// Restore | |
zcat databasename.sql.gz | mysql -u root -p databasename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment