skip to Main Content

SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)

I’m using Plesk as server admin. I think this error has to do with Plesk because before using it had installed Vespa Admin and everything ran smoothly.

I’m using DigitalOcean.

2

Answers


  1. Make sure that mysql service is up and running at least. Try to restart it. Check mysql log if it can’t be started.

    Login or Signup to reply.
  2. service mysql stop
    rm /var/run/mysqld/mysqld.sock
    service mysql start
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search