• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

MySQL admin@localhost access denied

S

sieb@

Guest
Access to the client instance of mysql as admin is denied. This just happened randomly. I had this problem once before and fixed it per Botsman's instructions in this thread (http://forum.plesk.com/showthread.php?s=&threadid=25369&highlight=mysql+access+denied) but its not working now.

Stop mysql, change my.ini to "skip_grant_tables", restart mysql, clear admin password, restart, access denied. Or, if I clear the admin password and set a new one, access is denied again. I check the 'misc' table in PSA's db and the password is correct, but no access. Even if I try to connect with Mysql Control Center, I get access denied. This is getting to be annoying because we cannot create user databases, nor can we run psadump.
 
When you using "skip_grant_tables" you can access to mysql. Then you can see mysql database. This database has user table. Column host for admin user determines access rights of admin. In your case it should be localhost.
 
Comparing the production server to a test server, there is no admin entry in the Mysql/user table. I add one with no password, and clear the password in the database credentials in PSA but, still doesn't work. I can't add an admin user to Mysql itself while skip-grant-tables is enabled, but if I disable it, I can't login to the db to fix it. :rolleyes:
 
Ok, I fixed this in a roundabout way. I did the skip_grant_tables, then logged in via MCC, modified one of the user accounts in the MySQL/user table and gave it full access (replaced all N's with Y's), restart mysql, then used that account to recreate the admin account with full access. Restart mysql and restore the correct access for the user account and sync the admin account credentials (make a password) via PSA. All is fine now.:)
 
Back
Top