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.

преди 1 година
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