Python MySQL.connect() question
Jim Conger
jimc at regnoc.com
Sun Jan 30 00:34:44 EST 2000
I have mySQL running on a RH Linux 6.1 box, and have added the
MySQLmodule.so to my python library. I can't figure out how to connect
within python. My attempts look like:
>>> import MySQL;
>>> db = MySQL.connect();
Traceback (innermost last):
File "<stdin>", line 1, in ?
MySQL.error: Can't connect to local MySQL server
>>>
I know the mySQL server is running in the background during this test,
so I'm noplussed. Any examples of working code would be appreciated.
Jim C.
More information about the Python-list
mailing list