libmysqld.dll almost working in python...

Rajas Sambhare rajas_sambhare at lycos.com
Tue Jan 6 15:12:15 EST 2004


Hi,

This is a followup on a previous thread by JZ 
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=ki39sv8s7ui622uriis8mfsg1daca34qqu%404ax.com&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3Dki39sv8s7ui622uriis8mfsg1daca34qqu%25404ax.com

The mysql-python page at sourceforge.net contains beta versions of
mysqldb (specifically 0.9.3b2). This does have the necessary embedded
server support. Some amount tweaking of setup.py is required (namely
pointing the lib variable to the correct directory (usually
c:/mysql/Embedded/DLL/Release). The library builds and installs, and
typing import MySQLdb at the python prompt loads LIBMYSQLD.DLL.

What happens then though, is that calling MySQLdb.server_init with the
correct parameters causes the python IDE to crash, with an access
violation in LIBMYSQLD.DLL.

I checked a bit and it seems the flag USE_TLS has to be set for the
mysys project in the mysql source.
http://dbforums.com/arch/156/2002/11/554910
I did this, created a new libmysqld.dll etc, and recompiled mysqldb
0.9.3b2, but the problem continues. Does anybody know how to avoid
this?

Thanks 

Rajas Sambhare



More information about the Python-list mailing list