• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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