MySQL 8.0 Public Key Retrieval is not allowed 错误的解决方法

在使用 MySQL 8.0 时重启应用后提示 com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Public Key Retrieval is not allowed

没有仔细研究到底是什么问题,最简单的解决方法是在连接后面添加 allowPublicKeyRetrieval=true

猜你喜欢

转载自blog.csdn.net/u013360850/article/details/80373604