docker-library / mysql

Docker Official Image packaging for MySQL Community Server
https://dev.mysql.com/
GNU General Public License v2.0
2.47k stars 2.2k forks source link

Syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead. #990

Closed Eleanaortegagm closed 1 year ago

Eleanaortegagm commented 1 year ago

I cannot get rid of this warning and I tried to set global host cache size to 0 in a sql script.

taco-chen commented 1 year ago

Also met this issue.

StefaniOSApps commented 1 year ago

same

rawr51919 commented 1 year ago

Fixed in PR #1002

LaurentGoderre commented 1 year ago

Duplicate of #921

pushpa-01 commented 5 months ago

I am facing error while running db container "The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead" where should I set it ? Anyone has idea about it?

LaurentGoderre commented 5 months ago

@pushpa-01 I believe this is fixed in recent versions. If you can't upgrade to a new version yet, you can try to apply this change manually: https://github.com/docker-library/mysql/pull/1002/files