1

Sujet : Can't connect to local MySQL server through socket

Bonjour,

Depuis ce matin, je ne peux plus accéder à ma base de données depuis mon site web.
J'obtiens le message suivant : " SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' "

Par contre, aucun problème depuis PHPMyAdmin.
Est-ce qu'il y a une manipulation particulière à faire ?

Cordialement,

2

Re: Can't connect to local MySQL server through socket

Bonjour

je rencontre le meme problème.

Erreur : SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Cordialement

------------------
Diodon Movies

3

Re: Can't connect to local MySQL server through socket

Dans mon cas, j'ai réussi à corriger le problème en disant à mon appli d'utiliser le socket unix '/var/run/mysqld_users/mysqld.sock'.
(tel que trouvé dans le phpinfo).

4

Re: Can't connect to local MySQL server through socket

Merci pour la réponse

------------------
Diodon Movies