Skip to main content

Django myslq backend that fixes issue with long living connection

Project description

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:

  1. For Django 1.x and 2.x use pip install mysql_server_has_gone_away==1.0.0

  2. For django 3.x use pip install mysql_server_has_gone_away==2.0.0

  3. 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',
	}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mysql_server_has_gone-2.0.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

mysql_server_has_gone-2.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file mysql_server_has_gone-2.0.2.tar.gz.

File metadata

  • Download URL: mysql_server_has_gone-2.0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for mysql_server_has_gone-2.0.2.tar.gz
Algorithm Hash digest
SHA256 60c20b5299f6debf014c9734ed1ee371adb76bf42648348d222e92eea319296f
MD5 36a6d5a038ae9ac2b0092606c5ba68f8
BLAKE2b-256 67a437730bb7722372f634a4a7ec2e4b2f554ed7eca462ee91aaa43e320bc92a

See more details on using hashes here.

File details

Details for the file mysql_server_has_gone-2.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mysql_server_has_gone-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4ceb77c0f02628e988eecfe03b1be62926029e91025e17fefdfe11e76afd29a7
MD5 e8f84d99b67b2e6266a3b320249f1ba3
BLAKE2b-256 89fea9ef57f7799cbe8ee8edb2ca0c14bf9d2c04b66791432aa7064b0a26c857

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page