I have automysqlbackup installed on debian. I added USERNAME and PASSWORD to /etc/default/automysqlbackup
, but when automysqlbackup runs, I get the output:
/etc/cron.daily/automysqlbackup:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO
as if I would not have configured any credentials.
The automysqlbackup config is the default configuration with two lines added at the end:
USERNAME=root
PASSWORD="the root password"
The default config tries to get the credentials from /etc/mysql/debian.cnf
(using grep in the /etc/default/automysqlbackup
bash snippet) which contains a warning that the file is deprecated and does not contain any admin password anymore on new installations.
I tried automysqlbackup with strace and it at least reads /etc/default/automysqlbackup
even when not started by cron. It doesn't use the password, though.