ScottGoddard
Basic Pleskian
Under certain circumstance I am having issues with the MySQL admin account and the problem is becoming more prevalent.
The easiest way to produce the problem is by running
However, running
Obviously, this problem is not present when use ‘skip-grant-tables’
Now, please believe me, I *KNOW* this is a common problem but I have tried every fix I can think of but still no resolution.
Things I have tried to resolve this:
Plesk currently runs fine for most things. Initially I noticed the error a couple of months ago when using the migration tool from another server to transfer a domain that was on this affected server. Everything else transferred OK but the database transfer failed with this message:
This was the only problem I saw for a couple of months, but around 2 weeks ago I started to get the following warnings on every DB in an FTP backup:
Server details:
OS: CentOS 6.10 (Final)
Product: Plesk Obsidian
Version: 18.0.20 Update #1, last updated on Oct 31, 2019 03:38 AM
DB Server Version: 5.7.29-log - MySQL Community Server (GPL)
The easiest way to produce the problem is by running
plesk db
at the command line – which gives the following ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES) exit status 1
However, running
mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
works fine – as does manually pasting the contents of /etc/psa/.psa.shadow.Obviously, this problem is not present when use ‘skip-grant-tables’
Now, please believe me, I *KNOW* this is a common problem but I have tried every fix I can think of but still no resolution.
Things I have tried to resolve this:
- Unable to access Plesk on Linux after manually changing the MySQL "admin" password: Access denied for user 'admin'@'localhost' (using password: YES) (Automatic and manual solution)
- ERROR PleskMainDBException Access denied for user 'admin'@'localhost' (using password: YES) (even though this is for Windows, I have tried everything relevant)
- Resolved - Changing root/MySQL passwords (everything in this thread)
- Plus many other things as I thought of them or found them online
Plesk currently runs fine for most things. Initially I noticed the error a couple of months ago when using the migration tool from another server to transfer a domain that was on this affected server. Everything else transferred OK but the database transfer failed with this message:
Code:
Failed to copy content of database 'xxxxxx'
Migration tools tried to perform operation in 3 attempts: Command execution failed on the source server 'source' (xxx.xxx.xxx.84) with non-zero exit code.
command: MYSQL_PWD="$(cat /etc/psa/.psa.shadow)" mysqldump --no-defaults -h localhost -P 3306 -uadmin --quick --quote-names --add-drop-table --default-character-set=utf8 --set-charset --routines --events xxxxxx> /root/plesk_migrator/plesk_migrator-xxxxxxxxxxxxxxxxxx/db-dumps/xxxxxx.sql
exit code: 2
stdout:
stderr: mysqldump: Got error: 1045: Access denied for user 'admin'@'localhost' (using password: YES) when trying to connect
This was the only problem I saw for a couple of months, but around 2 weeks ago I started to get the following warnings on every DB in an FTP backup:
Code:
Unable to make database dump. Error: Failed to exec mysqldump: mysqldump: Got error: 1045: Access denied for user 'admin'@'localhost' (using password: YES) when trying to connect
Server details:
OS: CentOS 6.10 (Final)
Product: Plesk Obsidian
Version: 18.0.20 Update #1, last updated on Oct 31, 2019 03:38 AM
DB Server Version: 5.7.29-log - MySQL Community Server (GPL)