• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Plesk Onyx MariaDB Password Issue

Mike Flanagan

New Pleskian
Hello,

After experiencing issues connecting to MariaDB via the command line using the admin password, I had to use mysqld_safe to reset the password.

The admin panel can now no longer connect to the database. Instead we experience the following issue:

Code:
ERROR: PleskDBException: Unable to connect to database: mysql_connect(): Access denied for user 'admin'@'localhost' (using password: YES) (Error code: 1045) (Abstract.php:69)

How can we reset the password globally? I have tried:

Code:
plesk bin admin --set-admin-password -passwd 'mynewpassword' -encrypted-password

But it won't work.
 
There is a difference between the Plesk database password for the database user "admin@localhost" and the Plesk GUI login password for the Plesk user "admin". When you change the Plesk database password for admin@localhost, you need to enter the new password into the file /etc/psa/.psa.shadow . The "plesk bin admin" command does not touch that database password, it reconfigures the Plesk GUI user password of the "admin" user.
 
Back
Top