We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
DATABASE_CONFIG
TORTOISE_ORM = { "connections": { "default": { "engine": "tortoise.backends.mysql", "credentials": { "host": settings.mysql_host, "port": settings.mysql_port, "user": settings.mysql_user, "password": settings.mysql_password, "database": settings.mysql_database, "minsize": 1, "maxsize": 5, "charset": "utf8mb4", "echo": True } }, }, "apps": { "models": { "models": ["app.memoir.models", "app.diary.models", "app.chat.models", "aerich.models"], "default_connection": "default", } }, "use_tz": False, "timezone": "Asia/Shanghai" }
The text was updated successfully, but these errors were encountered:
This is most likely related to your database server configuration not tortoise. Can you check the value of wait_timeout using
wait_timeout
SHOW VARIABLES LIKE 'wait_timeout';
If you have long queries that take longer than this value then you have to set your timeout to a bigger value.
Sorry, something went wrong.
No branches or pull requests
DATABASE_CONFIG
The text was updated successfully, but these errors were encountered: