Skip to content

Instantly share code, notes, and snippets.

@Pindar
Created November 5, 2013 14:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Pindar/7319399 to your computer and use it in GitHub Desktop.
Save Pindar/7319399 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