iis服务器助手广告广告
返回顶部
首页 > 资讯 > 数据库 >The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
  • 625
分享到

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received

mysqljava数据库 2023-09-01 07:09:20 625人浏览 泡泡鱼
摘要

Tomcat服务启动链接Mysql报错: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet s

Tomcat服务启动链接Mysql报错:

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文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作