[Twisted-Python] "MySQL has gone away"

Pavel Bastov pbastov at gmail.com
Sun Jul 29 21:28:15 MDT 2007


Hmm,

cp_reconnect seems like the proper solution. Thanks for pointing that out to me.

On 7/29/07, "Einar S. Idsø" <einar.twisted at norsk-esport.no> wrote:
> Have you tried cp_reconnect? It solved the problem for me.
>
> dbPool = adbapi.ConnectionPool('MySQLdb', db='fee', user='fii',
> passwd='foo', host='fum', cp_reconnect=True)
>
> Cheers,
> Einar
>
> Pavel Bastov wrote:
> > Hi all,
> >
> > I'm using MySQL database in my server app. Pretty often after some
> > inactivity I get this message in my logs "MySQL server has gone away".
> > How can I prevent this?
> >
> > TIA
> >
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>


-- 
Good luck,

Pavel Bastov
xooChat Evangelist and Team Leader
http://www.xoochat.com/




More information about the Twisted-Python mailing list