You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback
Post traceback here.
4031, 'The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior. Optional: SQL and parameters
Post SQL and parameters here, Pay attention to hiding private information.
database settings here:
'default': {
#'ENGINE': 'django.db.backends.mysql',
'ENGINE': 'dj_db_conn_pool.backends.mysql',
'NAME': env_config.mysql_commodity_dbname,
'USER': env_config.mysql_commodity_username,
'PASSWORD': env_config.mysql_commodity_password,
'HOST': env_config.mysql_commodity_host,
'PORT': env_config.mysql_commodity_port,
'POOL_OPTIONS': {
'POOL_SIZE': 10,
'MAX_OVERFLOW': 5,
'RECYCLE': 2 * 60 * 60,
'PRE_PING': True,
'TIMEOUT': 60
}
}
PRE_PING doesnt works。
The text was updated successfully, but these errors were encountered:
Describe the bug
msyql interactive_timeout=30s,wait_timeout=30s
database connection failed aftrer wait_timeout
config PRE_PING doesnt works。
django's backend
dj_db_conn_pool.backends.mysql
Environment
python3.12
Django==3.0.3
django-db-connection-pool==1.2.5
Traceback
Post traceback here.
4031, 'The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior.
Optional: SQL and parameters
Post SQL and parameters here, Pay attention to hiding private information.
database settings here:
'default': {
#'ENGINE': 'django.db.backends.mysql',
'ENGINE': 'dj_db_conn_pool.backends.mysql',
'NAME': env_config.mysql_commodity_dbname,
'USER': env_config.mysql_commodity_username,
'PASSWORD': env_config.mysql_commodity_password,
'HOST': env_config.mysql_commodity_host,
'PORT': env_config.mysql_commodity_port,
'POOL_OPTIONS': {
'POOL_SIZE': 10,
'MAX_OVERFLOW': 5,
'RECYCLE': 2 * 60 * 60,
'PRE_PING': True,
'TIMEOUT': 60
}
}
PRE_PING doesnt works。
The text was updated successfully, but these errors were encountered: