Tuesday, August 28, 2012

MySQL installation woes on Mountain Lion

After doing a fresh installation with Mountain Lion, I've had a hell of a time properly install MySQL. I've had to use a few sources to figure this one out, and here are the steps I needed to take.

I'm not 100% sure that these steps are needed, but they couldn't hurt

  1. sudo chown -R `whoami` /usr/local
  2. brew update

Some background.

  1. brew install mysql
  2. sudo mysql_install_db --user=mysql --tmpdir=/tmp --basedir=/usr/local
  3. mysql.server start

Now test with

mysql -uroot

No comments:

Post a Comment