Installing MySQL 5.5 on Mac OS X 10.6

Or should I say "unable to install MySQL 5.5 on Mac OS X".  My first attempt at installing MySQL on Mac was with MySQL 5.1 on Snow Leopard.  That worked as expected and without any issues.  MySQL 5.5, however, was a bit tricky.

After the install, I got this error on start up:
101224  9:50:00 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

MySQL is not started at this point, so running mysql_upgrade also fails (not that there is anything to upgrade, it's a fresh install).

Viva la Google!  After a little digging on Google (ok, a lot of digging), I found this article in the MySQL forums:

MySQL Forums :: Install :: Unable to install MySQL 5.5.8 on MacOS 10.6
http://forums.mysql.com/read.php?11,399397,399606#msg-399606

Worked like a charm!

So, the complete steps:
  1. Download the dmg and install per the reference manual:  http://dev.mysql.com/doc/refman/5.5/en/macosx-installation-pkg.html
  2. Edit: /usr/local/mysql/support-files/mysql.server
    1. $ sudo vi /usr/local/mysql/support-files/mysql.server
    2. Locate the configuration defining the basedir and datadir and set the following : 
      • basedir=/usr/local/mysql 
      • datadir=/usr/local/mysql/data
Hope this saves you some headache.  Good luck!

Comments

Popular posts from this blog

Using NHibernate in Asp.Net Core

Adding New Microsoft Extensions to Legacy WCF and ASMX Web Services

Code Coverage for Multiple Projects in a Single Build using Dotnet Test and Coverlet