10.4: Repair PHP/MySQL connections in 10.4.4

Jan 13, '06 05:29:00AM

Contributed by: Anonymous

Tiger only hintAfter updating to Mac OS X 10.4.4, you may find that the connection between PHP and MySQL running on your local webserver is broken.

Apparently the socket file got moved in the update. You can make it start working again by entering the following commands in a Terminal window:

$ sudo mkdir /var/mysql
$ sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
[robg adds: I haven't yet update my PowerBook to 10.4.4 (since I'm using it at Expo for presentations and it's working well, I decided the 'let sleeping dogs lie' rule should be followed), so I can't confirm this one.]

Comments (25)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20060111113313511