Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#32 Interface to set MYSQL_OPT_RECONNECT

MySQLdb
open
Andy Dustman
MySQLdb (53)
5
2012-09-19
2006-05-06
Paul Eastham
No

My hosting provider reboots their mysql database every
hour, causing my persistent mysqldb apps to crash with
"mysql server has gone away".

This patch exposes the MYSQL_OPT_RECONNECT flag in the
connect() method. You can now send a keyword argument
of "reconnect=1" to cause the mysql API to attempt to
reconnect if the connection is lost.

Discussion

<< < 1 2 (Page 2 of 2)
  • Andy Dustman
    Andy Dustman
    2008-10-23

    Your patch will not be applied.

     
<< < 1 2 (Page 2 of 2)