1.连接URL如下
jdbc:mysql://127.0.0.1:3306/xxxx?characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC&rewriteBatchedStatements=true
2.修改数据库‘xxxx’为‘自己管理数据库’
Public Key Retrieval is not allowed(Chat2DB,mysql8.0连接异常)
最新推荐文章于 2024-07-25 17:05:51 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)