From 710a8fa14976e7f9650e02cf82be04dec5db5275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E5=BF=97=E8=B1=AA?= Date: Fri, 15 May 2026 15:16:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(config):=20=E6=9B=B4=E6=96=B0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E8=BF=9E=E6=8E=A5=E9=85=8D=E7=BD=AE=E4=BB=A5?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=85=AC=E9=92=A5=E6=A3=80=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在数据库连接URL中添加allowPublicKeyRetrieval=true参数 - 解决MySQL连接时的公钥检索问题 --- mowen-base/src/main/resources/test/sa-base.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mowen-base/src/main/resources/test/sa-base.yaml b/mowen-base/src/main/resources/test/sa-base.yaml index 0da8d54..2acece2 100644 --- a/mowen-base/src/main/resources/test/sa-base.yaml +++ b/mowen-base/src/main/resources/test/sa-base.yaml @@ -1,7 +1,7 @@ spring: # 数据库连接信息 datasource: - url: jdbc:p6spy:mysql://10.126.126.1:43706/mowen-blog?autoReconnect=true&useServerPreparedStmts=false&rewriteBatchedStatements=true&characterEncoding=UTF-8&useSSL=false&allowMultiQueries=true&serverTimezone=Asia/Shanghai + url: jdbc:p6spy:mysql://10.126.126.1:43706/mowen-blog?autoReconnect=true&useServerPreparedStmts=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true&characterEncoding=UTF-8&useSSL=false&allowMultiQueries=true&serverTimezone=Asia/Shanghai username: mowen-blog password: junmowen driver-class-name: com.p6spy.engine.spy.P6SpyDriver