Created
February 8, 2018 10:27
-
-
Save haryx8/7865e5481c3b9e07e09da4d05b749a8e to your computer and use it in GitHub Desktop.
Restore MySQL from bz2 file
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
#!/bin/bash | |
bunzip2 < db_filename.sql.bz2 | mysql -u root -p target_db_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment