Python/MySQL problem on Windows

Carsten Haese carsten at uniqsys.com
Wed Sep 20 16:47:07 EDT 2006


On Wed, 2006-09-20 at 16:37, Eric Smith wrote:
> I'm trying to use Python 2.4.3 and pywin32-209 to access a MySQL
> database on Windows Server 2003 Standard Edition, and not having much
> luck. It seems like parts of the MySQLdb module are not getting loaded
> correctly, but no error message is given during the import, even if I
> give a "-vv" on the command line.
> 
> I'm trying to do:
> 
>     import MySQLdb
>     db = MySQLdb.connection (db="database", user="user", passwd="password")

What happens if you use connect(...) instead of connection(...)?

-Carsten





More information about the Python-list mailing list