In the middle of a Drupal install on my localhost I received the following error
No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) i…
2AM and in need of a quick fix I just created an alias in the location PHP was looking for mysql.
1234 mkdir /var/mysqlln -s /tmp/mysql.sock /var/mysql/mysql.sock