(2006, 'MySQL server has gone away') in WSGI django

Posted by Stefano Borini on Stack Overflow See other posts from Stack Overflow or by Stefano Borini
Published on 2010-04-06T03:39:16Z Indexed on 2010/04/06 3:43 UTC
Read the original article Hit count: 274

Filed under:
|

I have a MySQL gone away with Django under WSGI. I found entries for this problem on stackoverflow, but nothing with Django specifically. Google does not help, except for workarounds (like polling the website every once in a while, or increasing the database timeout). Nothing definitive. Technically, Django and/or MySQLdb (I'm using the latest 1.2.3c1) should attempt a reconnect if the server hanged the connection, but this does not happen. How can I solve this issue without workarounds ?

© Stack Overflow or respective owner

Related posts about django

Related posts about mysql