特牛网址导航

向阿里云的mysql8.0写数据的时候出现Public Key Retrieval is not allowed_mysql 8.0 retrieval of the rsa public key is not e-CSDN博客

网友收藏
文章浏览阅读622次。问题:今天在过滤出数据后调用JDBCUtil工具类去向阿里云的mysql8.0数据库写数据时出现了一直报错Public Key Retrieval is not allowed直接懵逼,之前调用自己写的工具类也没啥问题,唯独这一次出现了毛病md解决办法:在URL后面加上?allowPublicKeyRetrieval=true//加完后如下url = "jdbc:mysql://master:3306/mydb?allowPublicKeyRetrieval=true注意加的时英文?不是_mysql 8.0 retrieval of the rsa public key is not enabled for insecure connec