-
-
Save bhaskarkc/aec2621b19d631d6409dec521706ad06 to your computer and use it in GitHub Desktop.
MySQL: Import and export in gzip form
This file contains 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 in gzip form | |
mysqldump -u user -p database | gzip > database.sql.gz | |
// Import database from gzip form | |
gunzip < database.sql.gz | mysql -u user -p database |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment