Browse Source

Script update for restore db

pull/14/head
Steffan JJ 1 year ago
parent
commit
1d1a958244
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      trias/Database/mysql_restore.sh

+ 1
- 1
trias/Database/mysql_restore.sh View File

read fileName read fileName
BACKUP_FILE="/mysql_backup/$fileName" BACKUP_FILE="/mysql_backup/$fileName"


mysql -u $DB_USER -p$DB_PASS -e "CREATE DB triq_demo;"
mysql -u $DB_USER -p$DB_PASS -e "CREATE database triq_demo;"


# Restore backup file # Restore backup file
mysql -u $DB_USER -p$DB_PASS $DB_NAME < $BACKUP_FILE mysql -u $DB_USER -p$DB_PASS $DB_NAME < $BACKUP_FILE

Loading…
Cancel
Save