出错原因:Mysql驱动和url填写错误 因为mysql驱动和url内容可以向下兼容,但是向上不能拓展。 不建议在不验证服务器身份的情况下建立SSL连接。 如果未设置显式选项,则必须默认建立SSL连接
出错原因:Mysql驱动和url填写错误
因为mysql驱动和url内容可以向下兼容,但是向上不能拓展
。
不建议在不验证服务器身份的情况下建立SSL连接。
如果未设置显式选项,则必须默认建立SSL连接。
为了符合现有的不使用SSL的应用程序,verifyServerCertificate属性被设置为’false’。
您需要通过设置useSSL=false显式禁用SSL,或者设置useSSL=true并为服务器证书验证提供 信任存储区。
解决方法:
驱动: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/databaseName?userSSL=false&useUnicode=true&characterEncoding=UTF- 8&serverTimezone=GMT%2B8
来源地址:https://blog.csdn.net/yzy2058408371/article/details/127574942
--结束END--
本文标题: mysql入坑之:No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
本文链接: https://www.lsjlt.com/news/411080.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-16
2024-05-16
2024-05-16
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0