Installing mySQL on mac for use with python

Posted by Paul Patterson on Stack Overflow See other posts from Stack Overflow or by Paul Patterson
Published on 2010-12-22T23:34:41Z Indexed on 2010/12/23 2:54 UTC
Read the original article Hit count: 220

Filed under:
|
|
|

I am aware that there are umpteen similar questions here, and on other forums, but none of them have been able to help me.

I simply want to install mySQL on my mac (running snow leopard 10.6.5) for use with Python. So far I have:

1) 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])

2) downloaded and installed [mySQL-python-1.2.3]

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

Can anyone help?

© Stack Overflow or respective owner

Related posts about python

Related posts about mysql