[mod_python] Re: mod_python + MySQLdb + Apache strange behavoir

Johannes Öhlin johannes at aitellu.com
Fri Sep 9 11:09:34 EDT 2005

We had issues accessing our database using mod_python until we downgraded to 
MySQLdb 0.9.2. I think there is no thread support in newer versions of 


On Friday 09 September 2005 16.51, mod_python-request at modpython.org wrote:
> I seem to be having some strange behavior between mod_python and  
> MySQLdb under Apache.
> I have relatively simple .PSP's that will work one second, and then  
> fail on a reload.  Sometimes they work, sometimes they don't.  To  
> make things even more bizarre, if I utilize the same logic in  
> another .PSP it may work!  I can't seem to narrow down what this  
> problem is.
> I read an article from two years ago about conflicts between PHP  
> running parallel to mod_python.  I have deactivated the PHP module  
> loading within Apache, and the
> problem still persists.
> Error messages vary, nothing seems to fix things properly.
> Has anyone else had these sorts of problems?
> I am currently running mod_python 3.1.4, MySQLdb 1.2.0, MySQL 4.1.12-
> standard,
> and Apache 2.0.54
> Best,
> earle.

More information about the Mod_python mailing list