There is no excuse for using MySQL any more. Postgres is vastly better and the half lifetime I just lost doing this is proof evident of the fact but, right now, some nutbar psycho wants me to deploy onto MySQL and consequently I have to port some stuff to it (because My's date objects have no concept of time zone and so my existing code borks) and this means I need to set up a development environment for it because shoving hot pokers into my eyes was apparently not an option.
Let's say you've installed MySQL from
Oracle's official disk image installer. You need to add the installed location to your $PATH manually. I just put this in my ~/.profile
export PATH=/usr/local/mysql-5.1.50-osx10.6-x86/bin/:$PATH
Now you will be able to download and build the
MySQL python driver thingy with a traditional "sudo python.py setup.py install". Will further edit this post if it doesn't actually work.
Don't use MySQL.