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

MySQL Server Has Gone Away #16

Open
griffinkelly opened this issue Mar 8, 2018 · 2 comments
Open

MySQL Server Has Gone Away #16

griffinkelly opened this issue Mar 8, 2018 · 2 comments

Comments

@griffinkelly
Copy link

Getting errors after running FTP server for a while:

OperationalError: (2006, 'MySQL server has gone away')

Trying to find best way to resolve it. I tried making the SQL connection persistent in the settings.py file. Is there someplace I can close the connection when idol? Another way to resolve?

@tokibito
Copy link
Owner

The same problem exists in the web application.
This happens, for example, when the application maintains a database connection for a longer time than the MySQL server maintains a connection.
One solution is to set the application side database connection time shorter than the MySQL server timeout.
I am considering adding signals.

@tokibito
Copy link
Owner

@griffinkelly
You can try to change max_allowed_packet and wait_timeout parameter in MySQL server config.

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

No branches or pull requests

2 participants