Skip to content

Instantly share code, notes, and snippets.

@haryx8
Created February 8, 2018 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haryx8/7865e5481c3b9e07e09da4d05b749a8e to your computer and use it in GitHub Desktop.
Save haryx8/7865e5481c3b9e07e09da4d05b749a8e to your computer and use it in GitHub Desktop.
Restore MySQL from bz2 file
#!/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