Install MySQL Server - OSX Mountain Lion

Install MySQL Server - OSX Mountain Lion



Download the desired mysql version from the following link.

http://dev.mysql.com/downloads/mysql/

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

# curl -O http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-5.5.34-osx10.6-x86_64.dmg
# curl -O http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-5.5.34-osx10.6-x86.dmg

# curl -O http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.14-osx10.6-x86_64.dmg
# curl -O http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.14-osx10.6-x86.dmg

# curl -O http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.14-osx10.7-x86.dmg
# curl -O http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.14-osx10.7-x86_64.dmg


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.



Notes:

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

To check the architecture,
 # arch

This entry was posted in by Unknown. Bookmark the permalink.