[Twisted-Python] "MySQL has gone away"

"Einar S. Idsø" einar.twisted at norsk-esport.no
Sat Jul 28 18:00:57 EDT 2007

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)


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?

More information about the Twisted-Python mailing list