From c3e5e8d407940b226ea5aa7b66f4129d618efa20 Mon Sep 17 00:00:00 2001 From: ZXTommy <86364080+ZXTommy@users.noreply.github.com> Date: Mon, 15 Nov 2021 11:01:09 +0800 Subject: [PATCH] Update docker-compose.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mysql配置中的:MYSQL_USER 如果使用root会有 MYSQL_USER="root", MYSQL_PASSWORD cannot be used for the root user 错误导致mysql无法启动,改成“user”可以正常启动! --- docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 69f94cb..a3d3d64 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -53,6 +53,7 @@ services: # expose 33306 to client (navicat) #ports: # - 33306:3306 + # 下面MYSQL_USER 如果使用root会有 MYSQL_USER="root", MYSQL_PASSWORD cannot be used for the root user 错误导致mysql无法启动,改成“user”可以正常启动! volumes: # change './docker/mysql/volume' to your own path # WARNING: without this line, your data will be lost. @@ -61,5 +62,5 @@ services: environment: MYSQL_ALLOW_EMPTY_PASSWORD: "true" MYSQL_DATABASE: "rap2" - MYSQL_USER: "root" + MYSQL_USER: "name" MYSQL_PASSWORD: ""