personal blog

Posts Tagged "osx"

The shortest how-to install MySQL 5.x on Snow Leopard OSX

Posted by on Nov 29, 2009 in Uncategorized | 0 comments

Every time I am configuring new Mac or doing a clean upgrade to new version I end up with the same batch of problems.

So this time let me do myself and any of you readers a favor and note this one crucial bit that keeps coming back to me on such occasions.

First, make sure you have installed XCode from the Installation DVD.

Next, download MySQL community server 5.x (the x86_64 version if you’re on Snow Leopard onwards).

Now, crucial bit: start Terminal and execute this command:

export PATH=$PATH:/usr/local/mysql-5.1.41-osx10.5-x86_64/bin/

Obviously your version may be different. If you skip this you will end up with an error message “EnvironmentError: mysql_config not found”

Then simply do:

sudo easy_install mysql-python

Et voila!


Read More