PHP PDO MYSQL – SQLSTATE[HY000] [2002] No such file or directory

On the hostname, change it from localhost to 127.0.0.1.
It should do the work. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.