MySQL connection not working: 2002 No such file or directory

I had a similar problem and was able to solve it by addressing my mysql with 127.0.0.1 instead of localhost.

This probably means I’ve got something wrong in my hosts setup, but this quick fix get’s me going for right now.

Leave a Comment