-
-
Save pixelbrackets/4477397 to your computer and use it in GitHub Desktop.
Use gzip for imports and exports in MySQL
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 | |
mysqldump -u username -p dbname | gzip > dbdump.sql.gz | |
#import | |
zcat dbdump.sql.gz | mysql -u username -p dbname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment