I have a local web server running on my macbook and I\'ve come across a strange problem. I can access MySQL just fine using a program like Sequel Pro, password works and li
This is what fixed it for me. PHP.INI defaults to a different location than MySQL for the default socket. To fix, just run these two commands to add an alias (no restart needed):