Created
August 9, 2013 19:31
-
-
Save Swader/6196478 to your computer and use it in GitHub Desktop.
Exporting MySQL/Maria DBs gzipped, and importing them from gzipped format.
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
# Dump to gzipped file | |
mysqldump -u user -p database | gzip > database.sql.gz | |
# Import from gzipped file | |
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