Created
July 15, 2013 08:40
-
-
Save rakeshtembhurne/5998421 to your computer and use it in GitHub Desktop.
MySQL: Import and export in gzip form
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 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