MySQL mysqld.sock Error
August 3, 2008
I was getting this error tonight when trying to get PHP and MySQL to work on OSX.
Warning: mysql_pconnect() [function.mysql-pconnect]: Can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock’ (2)
To fix this problem, I had to add the following line to my PHP code.
ini_set(’mysql.default_socket’, ‘/tmp/mysql.sock’);
Now I have a new set of errors to contend with…



















Posted in



