• 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 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Trying to connect to MySQL... Failed to connect to MySQL: ERROR 1045 (28000)

J.Wick

Regular Pleskian
Plesk 11.09
Centos 5.9
MySQL 5.5.32-19

When I try to shut down Plesk or restart it I get this this error:

# /etc/init.d/psa restart
Trying to connect to MySQL... Failed to connect to MySQL: ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)


Also, scheduled backups fail, because of a MySQL password issue, so I'm assuming these issues are connected.

How do I sync the password? I tried resetting the admin password through Plesk and it had no affect, which is also only letters and numbers, no special symbols.
 
Have you tried to search it in KB articles. There are a lot of mentions "Access denied for user 'admin'" for example...
 
Are you able to login MySQL with the following command?

Yes, no problem.



Every time I try to restart, stopall, and start PSA I get:

[root@vcloud ~]# /etc/init.d/psa restart
Trying to connect to MySQL... Failed to connect to MySQL: ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)

If I set "skip-grant-tables" everything works fine.

So my puzzlement is where is the password being stored that PSA is using to connect to MySQL and how can I correct it?
 
Use /usr/local/psa/admin/bin/ch_admin_passwd for resetting admin's password.
 
Use /usr/local/psa/admin/bin/ch_admin_passwd for resetting admin's password.

I did the reset again with this method, using only 14 char password and got the output.

# /usr/local/psa/admin/bin/ch_admin_passwd
mysqld: no process killed


Tested the new password and was able to login to Plesk.

However, problem persists at the CLI.

[root@cloud ~]# /etc/init.d/psa stopall
Stopping psa... done
Trying to connect to MySQL... Failed to connect to MySQL: ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
Plesk: Stopping Mail Server... done
Stopping mailer service... not installed
Stopping mysqld service... done
Stopping postgresql service... done
Stopping psa-spamassassin service... not installed
Stopping tomcat5 service... done
Stopping httpd service... done

[root@cloud ~]# /etc/init.d/psa start
Starting xinetd service... done
Starting mysqld service... done
Trying to connect to MySQL... Failed to connect to MySQL: ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
Refusing to reset instance-specific data.
Starting named service... done
Starting postgresql service... done
Starting psa-spamassassin service... not installed
Plesk: Starting Mail Server... done
Starting psa... done

I've been using and administering Plesk for a long time, there is something going on here that is most likely a bug.


I have a hunch that I need to delete the admin user and have that account re-created. Is that even possible and what would the best way of doing that?
 
Can you please try to reset your admin password with : http://kb.parallels.com/en/346

I did that before, didn't work. I just did it again with the same result.

[root@cloud ~]# /usr/local/psa/bin/admin --show-password
xxxxxxxxx
[root@vcloud ~]# /usr/local/psa/bin//init_conf -u -passwd xxxxxxxx

SUCCESS: Completed updating administrator's information.
[root@cloud ~]# /etc/init.d/psa restart
Trying to connect to MySQL... Failed to connect to MySQL: ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES)
[root@cloud ~]#
 
So I'm guessing that due to the lack of other suggestions I've discovered a bug.

Where can I report this or get further detailed help?

I can't upgrade until this is corrected, I have a feeling if I tried, it would kill the entire server.
 
Last edited:
Back
Top