Frequently Asked Question

Error when testing the connection: SQLSTATE[HY000] [2002] Connection refused or SQLSTATE[HY000] [2002] No such file or directory
Last Updated 8 years ago

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

Please Wait!

Please wait... it will take a second!