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.

One thought on “Install MySQL Server - OSX Mountain Lion”

  1. There it solidifies and after a number of} hundred layers a three-dimensional object is created. I am going to include quantity of} gratuitous assembled photographs right here simply to walk you thru one other downside we're working on options on the way to|tips on how to} clear up. The warmth of the printing filament brought on some sections to flare in and out … that means that of the 4 items of the location plan that best portable socket organizer we printed as out as the base, nearly none of them had a real right angle on them. We had designed quantity of} extra steps that would allow us to “snap” these items together on the underside but that extra move added a substantial amount of time to the printing process so we bailed on them.