Python 操作 mysql 数据库,wait_timeout 后报什么错误

首先,先报错 OperationalError

 raise err.OperationalError(
peewee.OperationalError: (2013, 'Lost connection to MySQL server during query')

如果继续请求就变成了 InterfaceError 错误了

raise err.InterfaceError("(0, '')")
peewee.InterfaceError: (0, '')

后面不管请求多少次都是 InterfaceError

你可能感兴趣的:(python)