From ed0c499884fd58a0e06de9de5cef3ea575305a55 Mon Sep 17 00:00:00 2001 From: paulGao Date: Fri, 8 Jul 2022 11:23:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96mysql=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/my.cnf | 2 +- docker-compose.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/my.cnf b/config/my.cnf index d360aa4..d874042 100644 --- a/config/my.cnf +++ b/config/my.cnf @@ -16,7 +16,7 @@ init_connect='SET NAMES utf8mb4' #group_concat_max_len=1024 #group_concat_max_len=10240 -group_concat_max_len=-1 +group_concat_max_len=4294967295 [client] diff --git a/docker-compose.yml b/docker-compose.yml index 2d70914..ec8f958 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,12 +1,12 @@ version: '3' services: mysql: - image: mysql:8.0.25 + image: mysql:8.0.28 restart: always container_name: mysql volumes: - ../volumes/data/mysqldata:/var/lib/mysql - - ./config/my.cnf:/etc/my.cnf + - ./config/my.cnf:/etc/mysql/conf.d/my.cnf # 数据库还原目录 可将需要还原的sql文件放在这里 - ./init/mysql:/docker-entrypoint-initdb.d environment: