页面树结构
转至元数据结尾
转至元数据起始

(此文档仅供参考)

问题现象1

连接高版本mysql5作为知识库,连接失败,经查看日志,存在以下报错:

问题现象2

在测试连接知识库的时候一直连接不上,但是通过jsp、数据库工具、MySQL客户端均能正常连接,查看后台日志有以下报错信息:
Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:171)
at sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:98)
at sun.security.ssl.TransportContext.kickstart(TransportContext.java:220)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:428)
at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:186)
... 75 more

问题原因

使用JDBC跟数据库连接的时候,JDBC版本与MySQL版本不兼容,MySQL的版本更高一些,因此导致报错。

解决方案

在config界面连接配置时需要在库名后添加参数?useSSL=false,即可正常连接到数据库。