<div>Hello,</div>
<div>&nbsp;</div>
<div>I got this error when querying MySQL 5.0.26. I use Zope 2.9.4 and ZMysqlDA 2.0.9b3 (with MySQLdb 1.2.1_p2). MySQL do not gone away. </div>
<div>This error only happens after exactly 8 hours of database inactivity. I found some information about this error. </div>
<div>It seems is caused because MySQL close the connection after 8 hours, this time is stored at&nbsp;&#39;<font face="" color="#000000">wait_timeout&#39;</font> system variable in the MySQL server. </div>
<div>I&#39;m doing an application for school where isn&#39;t there activity at night.</div>
<div>Then db.py don&#39;t know this because it feels that connection is alive. Maybe the solution is check the connection before db.query. </div>
<div>Something&nbsp;similar in Zope3-Dev: <a href="http://mail.zope.org/pipermail/zope3-dev/2005-December/017052.html">http://mail.zope.org/pipermail/zope3-dev/2005-December/017052.html</a>&nbsp;</div>
<div>The solution: <a href="http://mail.zope.org/pipermail/checkins/2006-September/004078.html">http://mail.zope.org/pipermail/checkins/2006-September/004078.html</a></div>
<div>&nbsp;</div>
<div>Traceback (innermost last): </div>
<ul>
<li>Module ZPublisher.Publish, line 194, in publish_module_standard 
<li>Module ZPublisher.Publish, line 157, in publish 
<li>Module Zope2.App.startup, line 243, in abort 
<li>Module transaction._manager, line 107, in abort 
<li>Module transaction._transaction, line 507, in abort 
<li>Module transaction._transaction, line 580, in abort 
<li>Module <a href="http://Shared.DC.ZRDB.TM">Shared.DC.ZRDB.TM</a>, line 64, in abort 
<li>Module Products.ZMySQLDA.db, line 389, in _abort </li></li></li></li></li></li></li></li></ul>
<div>error: release unlocked lock</div>
<div>&nbsp;</div>
<div>Other people with the problem: <a href="http://mail.zope.org/pipermail/zope/2005-June/159762.html">http://mail.zope.org/pipermail/zope/2005-June/159762.html</a>&nbsp;<a href="http://dev.plone.org/plone/ticket/6263">http://dev.plone.org/plone/ticket/6263
</a></div>
<div>&nbsp;</div>
<div>It will be possible fix this? If not, how can&nbsp;I do the transactions with MySQL? Maybe with sqlobject o sqlalchemy?</div>
<div>Sorry for my English and sorry for create a new thread (<em>ticino at <a href="http://hccnet.nl">hccnet.nl</a>&nbsp;</em>put this question on the list some&nbsp;days ago). Thanks in advance.</div>
<div>&nbsp;</div>
<div>Peter Lion</div>