Thursday, October 1, 2009

Mac OS X: MySQL installation

1) Download the current stable version of FREE MySQL Community Server

(DMG package version):

you have to log in with you email:

2) Copy the DMG to /opt/mysql/mysql-5.1.39-osx10.5-x86.dmg

3) Shutdown any previous MySQL using command: mysqladmin shutdown

4) Double-click on .pkg and follow standard installation

At this point you have it installed:
Uki@(Thu Oct 01 11:23:39) /usr/local $ ls -alt

lrwxr-xr-x 1 root wheel 24 Oct 1 11:22 mysql -> mysql-5.1.39-osx10.5-x86
drwxr-xr-x 17 root wheel 578 Sep 4 14:15 mysql-5.1.39-osx10.5-x86

5) Run MySQLStartupItem.pkg to have mySQL start automatically.

6) Doble-click the MySQL.prefPane to have it in your "System Preferences"