You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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