If you’re comfortable with installing applications on your Mac and are reasonably familiar with MySQL, installing MySQL on Snow Leopard should be relatively simple.
- Download the Mac OSX disk image from the MySQL website:
I used the mysql-5.1.42-osx10.5-x86_64.dmg disk image, which seems to work fine. The image contains 4 files including a ReadMe file.
- Install the following packages found in the disk image to the default location and with the default options:
- Install the following profile found in the disk image to the default location and with the default options:
- Start the MySQL service in the System Preferences panel and check the Automatically Start the MySQL Service on Startup option.
That is all you need to do. However, if you’re working with PHP, you will need to correctly reference the
mysql.sock file in your
php.ini file. To do this, find the following line and ensure the reference is correct:
mysql.default_socket = /tmp/mysql.sock
(Remember to restart Apache if you make changes to your