Python and Django OperationalError (2006, 'MySQL server has gone away')

后端 未结 12 1747
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-14 15:25

Original: I have recently started getting MySQL OperationalErrors from some of my old code and cannot seem to trace back the problem. Since it was working before, I thought

12条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-14 16:07

    Firstly, You should make sure the MySQL session & global enviroments wait_timeout and interactive_timeout values. And secondly Your client should try to reconnect to the server below those enviroments values.

提交回复
热议问题