• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Ubuntu 14.04 mysql error after restart

core2

New Pleskian
Hi

I have restarted the server and am getting the following error:

ERROR: PleskDBException: Unable to connect to database: mysql_connect(): No such file or directory /var/run/mysqld/mysqld.sock (Error code: 2002). Please check that database server is started and accessible. (Abstract.php:69)

Anyway to fix this?
 
@IgorG Thank you very much for the response....

so if we rename the file as suggested in the document and if we restart the server will it work without the error on next boot?
mv /etc/init/mysql.conf /etc/init/mysql.conf.off

for now we started the mysql by issuing the following commands

sudo service mysql stop
sudo service mysql start​

it worked but not sure whether it's the proper way to do it.
 
sudo service mysql stop
sudo service mysql start

Yes, it works fine after running the above commands but if we restart the server we have to run the above commands to make the mysql working. So if we rename mv /etc/init/mysql.conf /etc/init/mysql.conf.off will it solve the issue?
 
Back
Top