I simply want to install MySQL on my Mac (running Mac OS X 10.6.5 (Snow Leopard)) for use with Python.
So far I have:
Downloaded and installed [mysql-5.5.8-osx10.6-x86_64.dmg]. (I have also accidentally downloaded and installed [mysql-5.1.54-osx10.6-x86_64.dmg])
Downloaded and installed [mySQL-python-1.2.3]
Added the following to my .bash_profile:
[export PATH=$PATH:/usr/local/mysql/bin]
But when I run:import mySQLdb in terminal, I am met with the following message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named mySQLdb
How can I fix this problem?
UPDATE: Okay, so I tried the MacPorts install, but still it is not working. I got the following error messages...
Error: db46 requires the Java for Mac OS X development headers.
Error: Download the Java Developer Package from: https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20719
Error: Target org.macports.configure returned: missing Java headers
Error: Failed to install db46
Log for db46 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/main.log
Error: The following dependencies were not installed: py26-distribute python26 db46 gdbm gettext expat libiconv gperf sqlite3
Error: Status 1 encountered during processing.
It doesn't mean much to me, though I'm guessing the second-to-last one explains why Python is not where it should be.