Connection failed: No such file or directory

As you can see in this troubleshooting article, that error means that you are using localhost as the database host. But your code seems fine now and so does your website, so all is good now.

4 Likes