i am trying to connect mysql database on ubuntu server from my php web application then i get the following error message

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

please help me, how to remove it ?

link|improve this question
feedback

1 Answer

things to check:

  • does the socket exists?
  • is mysqld running?
  • do you provide the correct credentials to access mysqld via the socket?
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.