I am trying to connect to mySQL using python. As far as I understand, you should have MySQLdb, which is some python connector module. My first problem was not the correct version of mySQLdb. Here can be found here . Then I have to open a command prompt window and go to the path to the file I just downloaded (after unzipping) and type python setup.py build . Then it gave me an error saying that I needed to download the installation tools. The installation tools seem to have been discontinued after python 2.6 or 7. Now we should use the distribution kit that I found here as a replacement. I did it, and now when I try to make my call, he spits out
Traceback (most recent call last): File "setup.py", line 13, in <module> from setup_windows import get_config File "C:\Program Files\MySQL\MySQL-python-1.2.3\setup_windows.py", line 46 print """You shouldn't be running this directly; it is used by setip.py.""" Syntax Error: invalid syntax
I need someone to hold my hand and guide me through how to get this setting. I spent 6 hours at Google trying to figure this out. (I read in several places that this is a complex setup, but worth it. I hope they are right.)
source share