Mysql has gone way (Django 下的解决方法)

Posted Rubick7

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mysql has gone way (Django 下的解决方法)相关的知识,希望对你有一定的参考价值。

def is_connection_usable(func):
def wrapper(*args, **kwargs):
result = None
try:
result = func(*args, **kwargs)
result[0]
except OperationalError:
connection.close()
result = func(*args, **kwargs)
return result
return wrapper










以上是关于Mysql has gone way (Django 下的解决方法)的主要内容,如果未能解决你的问题,请参考以下文章

[2006] MySQL server has gone away怎么解决????????

MySQL server has gone away

MySQL server has gone away

[FireDAC][Phys][MySQL] MySQL server has gone away

delphi连接mysql出现MySql server has gone away怎么解决

MySQL[Err] [Imp] 2006 - MySQL server has gone away .