Skip to content

Instantly share code, notes, and snippets.

@git-ashish
Forked from Pindar/gist:7319399
Created November 30, 2018 05:24
Show Gist options
  • Save git-ashish/1fdbfca9a4238bb922b3f435f857082f to your computer and use it in GitHub Desktop.
Save git-ashish/1fdbfca9a4238bb922b3f435f857082f to your computer and use it in GitHub Desktop.
Restore database from bz2 file
bunzip2 < serverdb.sql.bz2 | mysql -h example.com -P 3306 -u USERNAME -p DATABASE_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment