• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved Access denied for user 'admin'@'localhost' after dist-upgrade

Edi Duluman

Basic Pleskian
Server operating system version
Debian 11
Plesk version and microupdate number
Plesk Obsidian 18.0.65 Update #1
Hi. I have a very urgent issue. Everything went smoothly with the dist-upgrade from Debian 10 to Debian 11. Everything is now up and running, however, I can't get access to the mysql server for some reason.

I found a resolution in Plesk KB's asking me to add skip-grant-tables to [mysqld] in /etc/mysql/my.cnf which does indeed "fix" the issue by letting me at least get access to the plesk admin panel. However, a side-effect being that all databases for my sites show as "empty" ... see attached picture.

1732376749212.png

Running the folllowing command returns an error as well:

MYSQL_PWD="$(cat /etc/psa/.psa.shadow)" mysql --silent --skip-column-names -h localhost -P 3306 -u admin -e 'SELECT VERSION()'
ERROR 1698 (28000): Access denied for user 'admin'@'localhost'

I've also ran the following commands after adding skip-name-resolve to [mysqld] in /etc/mysql/my.cnf

root@agency ~ # MYSQL_PWD=$(cat /etc/psa/.psa.shadow) mysql -uadmin -h ::1
ERROR 1130 (HY000): Host '::1' is not allowed to connect to this MariaDB server

root@agency ~ # MYSQL_PWD=$(cat /etc/psa/.psa.shadow) mysql -uadmin -h 127.0.0.1
ERROR 1130 (HY000): Host '127.0.0.1' is not allowed to connect to this MariaDB server

root@agency ~ # MYSQL_PWD=$(cat /etc/psa/.psa.shadow) mysql -uadmin -h localhost
ERROR 1698 (28000): Access denied for user 'admin'@'localhost'

However, if I add skip-grant-tables the above commands obviously work, but none of the sites can connect to their specific databases as they are "not found" anymore.

Please advise ... I'm not sure what to do.
 
Hi. It is now fixed. I tried every resolution I could find. However, I ended up just paying for Plesk's support plan, which is just 10 USD per month and it's money well spent.

All in all, what happened was that during the upgrade guide from Debian 10 to Debian 11, as shown in step number 13, the guide does NOT state anything about any database version check, and so it basically installed MariaDB 10.5 while I had MariaDB 10.11 already installed. It overwritten the current config and so Plesk was trying to connect to this new "empty" database instead.

I spent 2 days trying to figure out what was happening, because I could see artifacts from the old database, but big shoutout to Vincent at Plesk's Technical Support, who managed to sort my mistake out.

Please pay attention to the commands Plesk offers in their Resolutions, this should NOT be there, or at least there should be a note where you need to replace the command with whatever version of the software you have.


1732540439215.jpeg
 
Back
Top