Tomcat服务启动链接Mysql报错: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet s
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds aGo. The driver has not received any packets from the server.
这个错误只是一个简单的mysql链接错误,它只是一脸单纯的告诉你:你链接mysql的链接地址错了,
就这一串, 你不要嘴硬,巴拉巴拉,有可能你本地服务可以起来,但是,换个服务或者换个环境,诶,起不来了,惊不惊喜,意不意外。
所以这个错误,不要看开始,开始的太简单,要拉到最后去看。
javax.net.ssl.SSLException: Unsupported record version Unknown-0.0
或者是
javax.net.ssl.SSLHandshakeException: No appropriate protocol
这个错误就很清晰了,
把url拿出来自己对一下:
jdbc:mysql:/databasename?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
这个时候就很简单了
useSSL=true
改为:
useSSL=false
完
来源地址:https://blog.csdn.net/mmzzy20150928/article/details/125396419
--结束END--
本文标题: The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
本文链接: https://www.lsjlt.com/news/387774.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