Last active
August 29, 2015 14:04
-
-
Save ahmadsoe/c8e34540906a3fb7fa59 to your computer and use it in GitHub Desktop.
mysql export import with bzip2
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
### mysql export with bzip2 | |
mysqldump -u root --routines --triggers db_name | bzip2 > dump.sql.bz2 | |
### mysql import with bzip2 | |
bunzip2 < dump.sql.bz2 | mysql -u root db_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment