• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Plesk broke changing MySQL admin password

Status
Not open for further replies.

NielsVL

New Pleskian
Hello,

I changed the password for the root user MySQL 'admin' via the webadmin in the Plesk panel (phpMyAdmin)
Now I am getting an error when i try to acces Plesk panel on port 8443:

Code:
ERROR: Zend_Db_Adapter_Exception: SQLSTATE[HY000] [1045] Access denied for user 'admin'@'localhost' (using password: YES) (Abstract.php:144)

When trying to login over SSH with
Code:
mysql -uadmin -p`cat /etc/psa/.psa.shadow`
i also get
Code:
ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)

So my guess was that the pass stored in Plesk for MySQL root user 'admin' didn't change. I was able to connect to the MySQL database via SSH using the new password (with Navicat) There i was able to set the pass of the user 'admin' back to the previous one (same as Plesk), restarted the services but the error is still present ... !?

Greets,
Niels
 
Solved the issue by updating the password for the MySQL admin user to the hash in /etc/psa/.psa.shadow
So the hash in .psa.shadow has to be hased again by PASSWORD()

... SET password = PASSWORD(<hash>) ...
 
Status
Not open for further replies.
Back
Top