Question fréquemment posée
Error when testing the connection: SQLSTATE[HY000] [2002] Connection refused or SQLSTATE[HY000] [2002] No such file or directory
Dernière mise à jour il y a 8 ans
This error happens when the host is set like localhost:/tmp/mysql5d.sock
Instead, you must set the host to be localhost;unix_socket=/tmp/mysql5d.sock
Instead, you must set the host to be localhost;unix_socket=/tmp/mysql5d.sock