Last active
August 29, 2015 14:16
-
-
Save adrianosaaquino/205dfda6d9d70bff9302 to your computer and use it in GitHub Desktop.
MySql - Create/Restore DUMP from schema structure and data compressed
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
Create dump. | |
$ mysqldump -uroot -proot schema | gzip -c > file.sql.gz | |
Restore dump. | |
$ gunzip < file.sql.gz | mysqldump -uroot -proot schema |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment