ok thank you
content of err is
mysqldump: Got error: 1045: "Access denied for user 'root'@'localhost' (using password: YES)" when trying to connect
but if i run single command
/usr/bin/ionice -c3 /usr/bin/nice -n19 /usr/bin/mysqldump --user=root --password='mypa$$word' -P 3306 -h 127.0.0.1...
thank you for reply.
yes, i know.
but this is for testing and for comfort i use root...
so i create
nano /root/mysql_password
1$2%3!a:b,c
chmod 400 /root/mysql_password
change row in
$IONICE -c3 $NICE -n19 $MYSQLDUMP --user=$MYSQL_USER --password=$(cat /root/mysql_password) -P $MYSQL_PORT -h...
Hello,
i have a simple script to backup mysql with mysql dump but i have a strange behaviour and i'm not sure of cause...
my script is
#!/bin/bash
DATA=$(date +"%Y-%m-%d--%H-%M")
MYSQLDUMP=/usr/bin/mysqldump
BZIP2=/usr/bin/bzip2
IONICE=/usr/bin/ionice
NICE=/usr/bin/nice
MYSQL_USER=root...