Skip to content

Instantly share code, notes, and snippets.

@turboBasic
Forked from maoizm/restore_database.sh
Last active June 23, 2017 13:57
Show Gist options
  • Save turboBasic/fda1237d76ea857e62378c8bcbed4526 to your computer and use it in GitHub Desktop.
Save turboBasic/fda1237d76ea857e62378c8bcbed4526 to your computer and use it in GitHub Desktop.
mysql database: restore from sql dump command
#!/bin/bash
gunzip < $1 | mysql -uUSER -pPASSWORD --database=DATABASENAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment