Revisit MySQLdb installation for Mac OS X Lion

Recently while reinstalling MySQL and getting MAMP for mac, I got into the MySQLdb issue for python. Mainly is the wrong architecture issue. After updating to Mac OS X Lion, the OS is more stable for 64 bit than the previous OS.

However, even you have MAMP, better to install MySQL for Mac again just purely for the complete library. And remember to get all in 64 bit, MySQL and Python.

Edit the site.cfg of the MySQL

mysql_config = /usr/local/mysql/bin/mysql_config

Then just sudo python build and sudo python install.