// change definer and triggers to 'root'@'localhost'<code>
#!/bin/sh
host='localhost'
user='root'
port='3306'
# following should be the root@localhost password
password='root@123'
# triggers backup
mysqldump -h$host -u$user -p$password -P$port --all-databases -d --no-create-info...
↧