This post is as much for my own reference as anything else, but if it is useful to you, than that is an added bonus.

I downloaded the most up-to-date version of MySQL 4.0 as a dmg from the MySQL website, and ran the installer.

But it doesn’t work quite yet. Since OS X 10.4.4 there is a slight issue with the default file locations, which can cause a big headache if you don’t know the solution Geoff posted on the MySQL forums.

You can correct this [by entering the following in the terminal]:
@ sudo mkdir /var/mysql @
@ sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock @

This creates a link between where MySQL installs the socket by default, and where PHP is looking for it by default, so that both work. Simple.

Update:
I meant to add in the link to the Evolt.org article on enabling virtual hosts on mac OS X, which is the other one I tend to forget how to do.

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URL

Sorry, the comment form is closed at this time.