Install MySQL Server - OSX Mountain Lion

Install MySQL Server - OSX Mountain Lion

Download the desired mysql version from the following link.

You can select either one of the following mysql package based on your requirement and architecture.

# curl -O
# curl -O

# curl -O
# curl -O

# curl -O
# curl -O

To open/extract the *.dmg file,

# hdiutil mount mysql-5.5.33-osx10.6-x86.dmg
/dev/disk2              GUID_partition_scheme             
/dev/disk2s1            Apple_HFS                          /Volumes/mysql-5.5.33-osx10.6-x86

# cd /Volumes/mysql-5.5.33-osx10.6-x86

Install the mysql package

# installer -pkg mysql-5.5.33-osx10.6-x86.pkg -target /
installer: Package name is mysql
installer: Installing at base path /
installer: The install was successful.

Once the installation completed, unmount the volume.

# hdiutil unmount /Volumes/mysql-5.5.33-osx10.6-x86
"/Volumes/mysql-5.5.33-osx10.6-x86" unmounted successfully.


To check product version in MAC
# sw_vers | grep ProductVersion | awk '{print $2}'

To check the architecture,
 # arch

This entry was posted in by Arun Ghosh. Bookmark the permalink.