IDEA中连接mysql 报错 Public Key Retrieval is not allowed显示不允许公钥检索是需要在配置url地址后面 添加 &allowPublicKeyRetrieval=true

spring.datasource.url=jdbc:mysql://127.0.0.1:3306/mybatis?useSSL=false&useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true
因为使用的mysql版本过高 是需要设置为true

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐