0
点赞
收藏
分享

微信扫一扫

java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed

霍华德 2022-02-05 阅读 104
sqljavamysql

解决java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed

解决方式

只要在数据库url的后面添加allowPublicKeyRetrieval=true即可

jdbc:mysql://localhost:3306/test?serverTimezone=GMT&allowPublicKeyRetrieval=true&useSSL=false&characterEncoding=utf8;
举报

相关推荐

0 条评论