The error “ERROR: PleskFatalException: Unable to connect to database: mysql_connect(): Connection refused” is one that appears on the Plesk login page if the MySQL service isn’t running when you go to the Plesk login page.
First, attempt to restart MySQL on your server:
service mysqld restart
However, this often does not work. The MySQL service needs to create a file in order to run, but it cannot create the file because a duplicate file of the same name exists.
To fix this problem:
mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak
service mysqld restart
Article ID: 79
Created On: Tue, Mar 3, 2015 at 5:26 PM
Last Updated On: Wed, Aug 18, 2021 at 2:23 PM
Online URL: https://www.heartinternet.uk/support/article/what-do-i-do-if-i-get-this-error-on-the-plesk-login-page-error-pleskfatalexception-unable-to-connect-to-database-mysql_connect-connection-refused.html