Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix 数据库连接超时断开导致的'Lost connection to MySQL server during query'报错 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SlightDust
Copy link
Member

长时间没有积分操作的话,会报

hoshino.util.database.DataBaseException: Error <OperationalError(2013, 'Lost connection to MySQL server during query')> occurred when attempt to operate database <'score'>

具体多长时间取决于mysql那边的超时时间设置。
参考照抄了一下https://blog.csdn.net/midion9/article/details/100562651 ,解决这个问题
虽然两年过去了,但还是pr解决一下吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant