• 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

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