您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

mysql_restore.sh 224B

12345678
  1. DB_USER="root"
  2. DB_PASS="root@123"
  3. DB_NAME="triq_demo"
  4. echo "Enter the name of backup file: "
  5. read folderName
  6. BACKUP_FILE="~/mysql_backup/$folderName"
  7. # Restore backup file
  8. mysql -u $DB_USER -p$DB_PASS $DB_NAME < $BACKUP_FILE