java 数据库连接报错Exception in thread "main" java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
可通过增加如下参数允许客户端获得服务器的公钥:
1、在 JDBC 连接串中加入 allowPublicKeyRetrieval=true 参数;
2、在 CLI 客户端连接时加入–get-server-public-key 参数;
3、在 CLI 客户端连接时加入–server-public-key-path=file_name 参数,指定存放在本地的公钥文件。