MySQL, Python and Odbc

mgates mgates at
Sun Mar 19 13:59:23 CET 2000

Question: How do I setup python to be able to query Mysql using odbc in

I have put the files mxOBDC and DateTime into the c:\Python\Lib dir ..
when I run the test script I get the following :

File "C:\python\Pythonwin\pywin\framework\", line 310, in
    exec codeObject in __main__.__dict__
  File "C:\python\Lib\ODBC\Misc\", line 1054, in ?
    rc = main()
  File "C:\python\Lib\ODBC\Misc\", line 1004, in main
    connection = apply(connectapi,connectargs)
OperationalError: ('IM002', 0, '[Microsoft][ODBC Driver Manager] Data source
name not found and no default driver specified', 4316)

any help?

More information about the Python-list mailing list