Cory O'Daniel – These are just words Software development, thoughts, and randomness

20Jan/101

Installing MySQL from DMG on Mac (and the few commands to make it work on the command line)

When you install mysql from the DMG on Mac OS X, it leaves a few things missing. Mysql binaries are missing from the path, and the sock file is being looked for in the wrong place by default.

Here is a quick fix:

1
2
3
echo "export PATH=/usr/local/mysql/bin:\$PATH" >> ~/.bash_login;
sudo mkdir -p /opt/local/var/run/mysql5;
sudo ln -s /tmp/mysql.sock /opt/local/var/run/mysql5/mysqld.sock;

Yay, now you can rock out with your bad self.

Post to Twitter Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Comments (1) Trackbacks (1)
  1. a book mark to your blog post was provided by Christian Dillstrom – you are doing a superb job as mobile + social media marketing virtuoso is pointing towards you!


Leave a comment