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 година
преди 1 година
преди 1 година
12345678910111213141516
  1. # Set the database credentials
  2. sudo apt-get update
  3. sudo apt-get -y install cifs-utils
  4. sudo mount //10.10.5.26/trias /mysql_backup/ -o username='baptist',password='2021Bbh',domain='bbh'
  5. DB_USER="root"
  6. DB_PASS="root@123"
  7. DB_NAME="triq_demo"
  8. # Set the backup directory
  9. echo "Enter the name of backup file: "
  10. read fileName
  11. BACKUP_FILE="/mysql_backup/$fileName"
  12. # Restore backup file
  13. mysql -u $DB_USER -p$DB_PASS $DB_NAME < $BACKUP_FILE