The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
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
完
版权声明:程序员胖胖胖虎阿 发表于 2022年11月5日 上午7:00。
转载请注明:The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received | 胖虎的工具箱-编程导航
转载请注明:The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received | 胖虎的工具箱-编程导航
相关文章
暂无评论...