将spring boot项目的数据库改为MySQL8后,项目启动报错如下:

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

在application.yml配置数据库连接的url后面,加上:

&allowPublicKeyRetrieval=true

 

相关文章:

  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
猜你喜欢
  • 2021-11-13
  • 2021-11-12
  • 2022-12-23
  • 2022-01-01
  • 2021-09-29
相关资源
相似解决方案