java-sec-code icon indicating copy to clipboard operation
java-sec-code copied to clipboard

docker 环境mysql 连接 报错 Public Key Retrieval is not allowed

Open jax777 opened this issue 3 years ago • 2 comments

Public Key Retrieval is not allowed

jax777 avatar Sep 01 '20 07:09 jax777

Me too.

FKK921 avatar Mar 13 '22 09:03 FKK921

1、修改pom.xml中mysql版本与实际版本一致。 2、修改application.properties里面jdbc为allowPublicKeyRetrieval=true,再加上characterEncoding=utf8

FKK921 avatar Mar 13 '22 10:03 FKK921

本地测试可修改application.properties里的AllowPublicKeyRetrieval为allowPublicKeyRetrieval。 docker环境我找时间重新发布一下。

JoyChou93 avatar Feb 22 '23 09:02 JoyChou93