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

mysql_restore.sh 279B

123456789101112
  1. # Set the database credentials
  2. DB_USER="root"
  3. DB_PASS="root@123"
  4. DB_NAME="triq_demo"
  5. # Set the backup directory
  6. echo "Enter the name of backup file: "
  7. read fileName
  8. BACKUP_FILE="/mysql_backup/$fileName"
  9. # Restore backup file
  10. mysql -u $DB_USER -p$DB_PASS $DB_NAME < $BACKUP_FILE