SQLNonTransientConnectionException: Public Key Retrieval is not allowed
时间: 2023-10-21 19:37:30 浏览: 236
Current limitations of language models:what you need is retrieval.pdf
This error occurs when attempting to establish a secure connection to a MySQL database using SSL/TLS and the server's public key cannot be retrieved. This can happen if the MySQL driver does not support the required protocol version, or if the server is using a self-signed or invalid SSL certificate.
To resolve this issue, you may need to update your MySQL driver to a newer version that supports the required protocol, or configure your server to use a valid SSL certificate issued by a trusted certificate authority. Alternatively, you may be able to disable SSL/TLS encryption, but this is not recommended for security reasons.
阅读全文