PHP PDO MYSQL – SQLSTATE[HY000] [2002] No such file or directory April 5, 2016Laravel, PHP, SQLPF On the hostname, change it from localhost to 127.0.0.1. It should do the work. 🙂