Please use SET GLOBAL host_cache_size=0 instead #9729

Closed
opened 2025-11-02 08:47:48 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @ghnp5 on GitHub (Oct 24, 2022).

Description

I use Docker Gitea, with a MySQL 8 instance next to it.

When looking at the logs of the MySQL instance, on restart I see this:

2022-10-24T10:19:24.316236Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.

I don't maintain the my.cnf file, so I assume it is Gitea that is putting this --skip-host-cache variable in.

Gitea Version

1.17.3

How are you running Gitea?

Docker with RUN_MODE=prod

Database

MySQL

Originally created by @ghnp5 on GitHub (Oct 24, 2022). ### Description I use Docker Gitea, with a MySQL 8 instance next to it. When looking at the logs of the MySQL instance, on restart I see this: > 2022-10-24T10:19:24.316236Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead. I don't maintain the `my.cnf` file, so I assume it is Gitea that is putting this `--skip-host-cache` variable in. ### Gitea Version 1.17.3 ### How are you running Gitea? Docker with RUN_MODE=prod ### Database MySQL
GiteaMirror added the type/question label 2025-11-02 08:47:48 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Oct 24, 2022):

Gitea does not maintain the MySql configuration. Please contact the MySql maintainers about their Docker image.

@KN4CK3R commented on GitHub (Oct 24, 2022): Gitea does not maintain the MySql configuration. Please contact the MySql maintainers about their Docker image.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9729