Last active
November 15, 2018 07:51
-
-
Save mbpcoder/97107dee2012c286033ce2b5edb17127 to your computer and use it in GitHub Desktop.
Mysql Database Restore Backup
This file contains hidden or 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
BACKUP_FILE="/tmp/backup.sql.gz" | |
cat BACKUP_FILE | mysql --init-command="SET SESSION FOREIGN_KEY_CHECKS=0;" -u myusername -p'secret' database_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment