Hi all,

I have a problem with installing drupal. It works great on my localhost, but on the webserver I constantly get this message: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2).

Anyone know how to solve this?

My login credentials are correct. I can login with phpmyadmin using the same credentials.

Thx in advance!

Marcoevich

Comments

Marcoevich’s picture

Never mind, I solved the problem :)

guitarlesson’s picture

If you figured out the answer, why not post it? I'm having the exact same problem.

odizle’s picture

how did you solved this?

hershel’s picture

Try setting the default MySQL socket in php.ini to the correct setting. If you don't know what it is, ask your host.

gthing’s picture

Hey guys what's the secret of life?

Edit: Nevermind, I figured it out.