Jump to content

Link to database cannot be established: SQLSTATE[HY000] [2002] No such file or directory


bhushan98@gmail.com

Recommended Posts

Sir, 

 

Prestashop version : 1.6.1.6 

 

On my prestashop  site every thing was going fine.  Suddenly I am seeing this error  :

 

Link to database cannot be established: SQLSTATE[HY000] [2002] No such file or directory

 

I have googled to find a solution for this but could not find.  

 

Pl. help me. 

 

Thanks 

Link to comment
Share on other sites

You should ask support from your provider. The error message indicates that a MySQL connection via socket is tried (which is not supported). The socket is not correct or not correct installed, this means localhost or what else (IP) you added as setting for your database  is not found at that location.

 

It could be a wrong setting you are adding (localhost instead of 127.0.0.1, or wrong IP), or mysql has crashed and file is missing. Your provider should read error logs from server and give you and advice or correct the problem.

Link to comment
Share on other sites

  • 6 years 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...