Hi - I know this has happened many times before, but can't quite figure out the solution...
For a while now I have been getting emails saying that the daily cron job has exited with error 1.
Assuming it is the mysqldump...
When I try and run mysqldump.sh on the command line I get the following:
# /opt/psa/bin/mysqldump.sh
Dump databases: psa mysql horde sitebuilder5 apsc roundcubemail
mysqldump: Got error: 1045: Access denied for user 'admin'@'localhost' (using password: YES) when trying to connect
Failed to dump databases
...but when I do the following:
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin mysql
...it logs into Mysql fine and admin has all privileges..
I am also running the:
# /opt/psa/bin/sw-engine-pleskrun /opt/psa/admin/plib/DailyMaintainance/script.php
...to see if this throws up any errors, but this takes an age...
Many Thanks
For a while now I have been getting emails saying that the daily cron job has exited with error 1.
Assuming it is the mysqldump...
When I try and run mysqldump.sh on the command line I get the following:
# /opt/psa/bin/mysqldump.sh
Dump databases: psa mysql horde sitebuilder5 apsc roundcubemail
mysqldump: Got error: 1045: Access denied for user 'admin'@'localhost' (using password: YES) when trying to connect
Failed to dump databases
...but when I do the following:
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin mysql
...it logs into Mysql fine and admin has all privileges..
I am also running the:
# /opt/psa/bin/sw-engine-pleskrun /opt/psa/admin/plib/DailyMaintainance/script.php
...to see if this throws up any errors, but this takes an age...
Many Thanks