Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'

21 Jul 2007 10:20 - (0) comments

OSX crashed yesterday and after restarting I got the following error in some php apps

Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'.

This happened once before so I'm documenting the proper solution here for possible later use.

sudo /usr/sbin/apachectl stop
apache2ctl start

Comments

No comments allowed.

Admin