Java 连接池中的Payara ssl连接

Java 连接池中的Payara ssl连接,java,mysql,ssl,payara,Java,Mysql,Ssl,Payara,我正在处理从Payara服务器到mysql服务器的ssl连接。无论我在尝试什么,我总是会遇到同样的错误: Ping Connection Pool failed for test. Connection could not be allocated because: Could not create connection to database server. Attempted reconnect 3 times. Giving up. Please check the server.log

我正在处理从Payara服务器到mysql服务器的ssl连接。无论我在尝试什么,我总是会遇到同样的错误:

Ping Connection Pool failed for test. Connection could not be allocated because: Could not create connection to database server. Attempted reconnect 3 times. Giving up. Please check the server.log for more details.
当我使用mysql
-utest-p-h127.0.0.1
从cmd连接时,我的mysql用户使用ssl连接。我使用\s命令对此进行了测试

当我找到这个文档时。我试图在Payara服务器上安装证书。我创建了信任存储并将其添加到java密钥库中。然后在我的连接池中设置属性:

clientCertificateKeyStoreUrl=file:path_to_truststore_file 
clientCertificateKeyStorePassword=mypassword 
但这不起作用。因此,我尝试在config dir中将证书添加到域密钥库中,但这也不起作用