• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

ERROR: PleskFatalException: Unable to connect to database: mysql_connect()

euphbasio

Basic Pleskian
Hi guys,

So a bit stumped by this one. Clean installation of both Ubuntu 12 and Centos 6 on a VM and fresh installation of Plesk 11.5 using parallels_installer.

When trying to open the panel, I see the below.

There are a few suggestions around about mysql connections etc., but nothing appears to apply to these.

ERROR: PleskFatalException: Unable to connect to database: mysql_connect(): Permission denied (auth.php:142)

Any suggestions would be much appreciated.

Thanks in advance.
 
Have you checked /var/log/mysql/mysql.log?
Make sure that you have correct permissions on /tmp and enough free disk space and inodes.
 
Hi Igor,

Thanks. There was nothing in the mysql.log, tmp permissions correct and 100GB+ free disk space.

The error was permissions of mysql.sock were set to 755. chmod 777 sorted it out. It is odd though, since this was a fresh installation.

Take care,

Nick
 
Back
Top