今天在写一个测试项目的时候,在Windows*问接口正常,但是将项目部署到Linux上之后,同一个查询接口报错:java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
并且Windows和Linux都用的同一个数据库,MySQL数据库的版本是8.0.25
解决方案:
在项目的配置文件中,修改MySQL的连接url,加上 allowPublicKeyRetrieval=true
相关文章
- 12-30java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
- 12-30MySQL8.0 Public Key Retrieval is not allowed
- 12-30MySQL8.0-Public Key Retrieval is not allowed
- 12-30JAVA后端连接MYSQL 8 报错:Public Key Retrieval is not allowed
- 12-30JDBC链接数据库MySQL 8.0 Public Key Retrieval is not allowed 错误的解决方法
- 12-30com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Public Key Retrieval is not al
- 12-30MySQL8 提示Public Key Retrieval is not allowed错误解决方法
- 12-30Mysql8.0 Public Key Retrieval is not allow错误的解决办法
- 12-30JDBC连接MySQL 8时报错:MySQLNonTransientConnectionException: Public Key Retrieval is not allowed
- 12-30win10的docker无法运行mysql的image,Public Key Retrieval is not allowed