Mysql8.0异常:Public Key Retrieval is not allowed

在项目的JDBC连接数据库的url中,加上allowPublicKeyRetrieval=true参数,已验证可以解决该问题。

jdbc:mysql://localhost:3306/spring?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
posted @ 2020-08-22 17:21  小麒麟的饲养员  阅读(120)  评论(0)    收藏  举报