Jump to content

Link To Database Cannot Be Established: Sqlstate[Hy000] [2002] Can't Connect To Local Mysql Server T


Recommended Posts

Hi,

 

I have my PS 1.6.1.4 installed on a VPS and I'm getting same error after 3 different rebuild 2 ububtu and now debian 8. So it's not from the os... I have mysql not nginx and php 5.6.17 with opcache enabled. I noticed I'm getting this error :

 

Link to database cannot be established: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

 

After i restart the MySql service the site works again.

 

What can be the problem? My memory usage is low 270M / 2048M.

 

Thanks.

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...