Hello,
Plesk daily backup failed with following message:
I run the following query:
result was as below:
then I tried to get backup manually but I got the same error:
then I tried to use plesk admin user to get a manual backup:
now I'm confused!
database user could not make a backup, I tough maybe its password saved incorrectly, so I reset xxxUS1xxx password with plesk panel but nothing changed.
there is one more strange thing! in the log file plesk told that the admin user got an access denied, but as I see admin user could make a backup with no error.
any Idea?
Plesk daily backup failed with following message:
Code:
[4273]: 18:42:32 ERROR 75f73cb0-b085-4023-8368-fbd58f7405e7 Failed to execute backup database
.....
mysqldump: Got error: 1045: Access denied for user 'admin'@'localhost' (using password: YES) when trying to connect
I run the following query:
Code:
mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e "select d.name,dbs.host, dbs.type, db.name,du.login,a.password from domains d left join data_bases db on db.dom_id=d.id
left join DatabaseServers dbs on db.db_server_id=dbs.id left join db_users du on db.default_user_id=du.id left join accounts a on du.account_id=a.id where d.name='xxxDomainxxx'"
result was as below:
Code:
+--------------+-----------+-------+-----------+-----------+----------------------------------------------------------------+
| name | host | type | name | login | password |
+--------------+-----------+-------+-----------+-----------+----------------------------------------------------------------+
| xxxDomainxxx | localhost | mysql | xxxDB1xxx | xxxUS1xxx | $AES-128-CBC$o4Gd4ZI8k8SeMNVKmLNDuQ==$VwnB4gKOz8esUE3d98aQYg== |
| xxxDomainxxx | localhost | mysql | xxxDB2xxx | xxxUS2xxx | $AES-128-CBC$KGcIyF/zY1D52XwDY/mjyA==$PshC5RQJTbfL1ZWTVWo6rw== |
+--------------+-----------+-------+-----------+-----------+----------------------------------------------------------------+
then I tried to get backup manually but I got the same error:
Code:
>mysqldump xxxDB1xxx -uxxxUS1xxx -p$AES-128-CBC$o4Gd4ZI8k8SeMNVKmLNDuQ==$VwnB4gKOz8esUE3d98aQYg== -hlocalhost > testdump
res:
mysqldump: Got error: 1045: Access denied for user 'xxxUS1xxx'@'localhost' (using password: YES) when trying to connect
then I tried to use plesk admin user to get a manual backup:
Code:
mysqldump xxxDB1xxx -uadmin -p`cat /etc/psa/.psa.shadow` -hlocalhost > testdump
res:
Done! with no error.
now I'm confused!
database user could not make a backup, I tough maybe its password saved incorrectly, so I reset xxxUS1xxx password with plesk panel but nothing changed.
there is one more strange thing! in the log file plesk told that the admin user got an access denied, but as I see admin user could make a backup with no error.
any Idea?