浏览代码

Updated restore script

pull/14/head
Steffan JJ 1年前
父节点
当前提交
5d66ae1cb9
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      trias/Database/mysql_restore.sh

+ 2
- 0
trias/Database/mysql_restore.sh 查看文件

@@ -23,5 +23,7 @@ echo "Enter the name of backup file: "
read fileName
BACKUP_FILE="/mysql_backup/$fileName"

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

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

正在加载...
取消
保存