-
Notifications
You must be signed in to change notification settings - Fork 2.3k
packets.go:122: closing bad idle connection: EOF #1120
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
Comments
Have you configured DB.SetConnMaxLifetime? |
https://golang.org/pkg/database/sql/#DB.SetConnMaxLifetime
Look like default is |
The default is 0. Connection is reused forever. I recommend shorter than 5min. |
Ok, I will try it later. |
I have the same problem. The following is my version informationDriver version (or git SHA): github.com/go-sql-driver/mysql v1.5.0 Go version: 1.12 Server version: MySQL 5.6 Server OS: Centor(Docker) I switched the github.com/go-sql-driver/mysql version to 1.4.1 ,then I solved the problem |
Please read my comments in this thread. |
Hi, i am also seeing this, i wrote about it in detail here: |
Hi, is there any possible way that I can restructure this log to my desired format? |
Issue description
run sql statement, always print in sql package :
but, sql call method not return error, look like sql statement run success.
Example code
Error log
Configuration
Driver version (or git SHA):
github.com/go-sql-driver/mysql v1.5.0
Go version:
1.14.2
Server version:
MySQL 5.6
Server OS:
Centor(Docker)
The text was updated successfully, but these errors were encountered: