From d8158746f15aba8cd31c7733c95f8a0ad1b856b8 Mon Sep 17 00:00:00 2001 From: QuinlanHoo <35485676+ColanCN@users.noreply.github.com> Date: Tue, 5 Sep 2023 17:58:11 +0800 Subject: [PATCH] Update MySQL to 8.1.0 to prevent mysql_native_password warning (#249) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用caching_sha2_password代替mysql_native_password。 以解决使用My SQL的Docker镜像报Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'。告警的问题。 ```release-note None ``` --- docs/getting-started/install/docker-compose.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting-started/install/docker-compose.md b/docs/getting-started/install/docker-compose.md index 763f5f2..e7fcf4f 100644 --- a/docs/getting-started/install/docker-compose.md +++ b/docs/getting-started/install/docker-compose.md @@ -145,13 +145,13 @@ import DockerArgs from "./slots/docker-args.md" - --halo.external-url=http://localhost:8090/ halodb: - image: mysql:8.0.31 + image: mysql:8.1.0 container_name: halodb restart: on-failure:3 networks: halo_network: command: - - --default-authentication-plugin=mysql_native_password + - --default-authentication-plugin=caching_sha2_password - --character-set-server=utf8mb4 - --collation-server=utf8mb4_general_ci - --explicit_defaults_for_timestamp=true