MySQL-server-has-gone-away
This repository solves issue where database connection inside of django overlives MySQL database connection timeout specified in /etc/my.cnf wait_timeout = xxxx. See this issue
How to use:
-
For Django 1.x and 2.x use
pip install mysql_server_has_gone_away==1.0.0 -
For django 3.x use
pip install mysql_server_has_gone_away==2.0.0 -
Put this engine into Django
settings.py:
DATABASES = {
'default': {
'ENGINE': 'mysql_server_has_gone_away',
#'NAME': 'database-name',
#'USER': 'database-user',
#'PASSWORD': 'database-password',
#'HOST': 'localhost',
}
}
Metadata
Release files for mysql-server-has-gone-away 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mysql_server_has_gone_away-2.0.0.tar.gz | 2.2 kB | Details |
Release files / mysql_server_has_gone_away-2.0.0.tar.gz
| Download URL | mysql_server_has_gone_away-2.0.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
068e3a580abcbb3f728bd2826ecb7fe81ab3820ab4a96639bd87a4ca06b13277
|
|
BLAKE2b-256 checksum How to use checksums |
d2cbb9bdefe42ac53dec8626ab816fd42e578121aef791b5268f5d98d22481c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|