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.
123456789101112 |
- # Set the database credentials
- DB_USER="root"
- DB_PASS="root@123"
- DB_NAME="triq_demo"
-
- # Set the backup directory
- echo "Enter the name of backup file: "
- read fileName
- BACKUP_FILE="/mysql_backup/$fileName"
-
- # Restore backup file
- mysql -u $DB_USER -p$DB_PASS $DB_NAME < $BACKUP_FILE
|