From 1f304fb78f9eacc3138e474f681ab166af8a674d Mon Sep 17 00:00:00 2001 From: vastxie Date: Wed, 8 May 2024 16:08:11 +0800 Subject: [PATCH] Update docker-compose.yml --- docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8c384b9..eb0e969 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,8 @@ version: '3.9' services: mysql: image: mysql:8 - command: --default-authentication-plugin=caching_sha2_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci + command: --mysql-native-password=ON --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci + # command: --default-authentication-plugin=caching_sha2_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci restart: always volumes: - ./data/mysql/:/var/lib/mysql/