当前位置:网站首页>mysql 错误:The driver has not received any packets from the server.
mysql 错误:The driver has not received any packets from the server.
2022-08-02 21:44:00 【51CTO】
com.mysql.jdbc.exceptions.jdbc4.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.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:400)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1038)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:339)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2247)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2280)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2079)
........
出现以上错误,先尝试使用mysql客户端连接下需要连接的mysql server 数据库。
此错误为,jdbc启动,尝试连接相应地址的数据库(会发送一些用于测试的sql语句),结果没有响应,即连接失败。
边栏推荐
猜你喜欢

测试ESP32-Zigbee转发命令 : 滑轨、继电器控制

“百日行动”进行时:700余交通安全隐患被揪出

Intensive reading of the Swin Transformer paper and analysis of its model structure

Command line startup FAQs and solutions

一群搞社区的人

手把手教你干掉if else

JS Date 时间戳 getTune data.parse 倒计时小程序

In-depth study TypeScript TypeScript 】 【 class (under)

谷粒商城-day14-商城业务与压力测试

win10桌面图标全部变成白色的怎么办
随机推荐
如何通过开源数据库管理工具 DBeaver 连接 TDengine
【STM32学习2】存储器相关概念与操作
iptables、firewalld的使用
matplotlib绘图的核心原理讲解(超详细)
增删改查这么多年,最后栽在MySQL的架构设计上!
用于中文文本分类的中文停用词
Learn more TypeScript 】 【 TypeScript modular
Broadcast platform, the use of the node generated captcha image, and validate
工厂模式理解了没有?
面试官:可以谈谈乐观锁和悲观锁吗
IP协议(网际协议)
CS5213 chip | HDMI to VGA converter chip data sharing
Add and delete all these years, finally planted in MySQL architecture design!
万物智联时代,悄然走入生活
go 反射 reflect 包
js function anti-shake and function throttling and other usage scenarios
Ansible安装与配置
golang刷leetcode:使数组按非递减顺序排列
Ruoyi integrates minio to realize distributed file storage
Flink-shell