• 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.

problem with mysql admin password

I

InternetPower

Guest
Plesk 10.3.1 - Centos 6.0 - x86_64

On one server I cannot logon to mysql from shell using the admin password, the same that works to logon from the web interface.
Instead to logon to mysql I have to use the password stored in /etc/psa/.psa.shadow AS IS, while the admin password (the same I can get using "/usr/local/psa/bin/admin --show-password") is it's decrypted form.

So the problem is that when I change the admin password, Plesk sets it enncrypted in /etc/psa/.psa.shadow but then behaves like in the previous versions of Plesk where in /etc/psa/.psa.shadow it's the real password, and uses it to set the password in the grant tables of mysql.
From the web interface I have no problem logging on using the password I choosed.

Maybe there is a switch to tell Plesk to consider the password stored in /etc/psa/.psa.shadow the real password OR the encrypted form (for example for compatibility reasons during Plesk upgrades), but where?

How can I fix it?
Thanks.
 
To encrypt the password manually, use this command-line call:
# /usr/local/psa/bin/init_conf -u -passwd <password> -encrypted-password

To decrypt the password, run:
# /usr/local/psa/bin/init_conf -u -passwd <password> -plain-password
 
Back
Top