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

On the hostname, change it from localhost to
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.