当前位置:网站首页>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语句),结果没有响应,即连接失败。
边栏推荐
猜你喜欢
搭建Spark开发环境(第二弹)
你离「TDengine 开发者大会」只差一条 SQL 语句!
双轴晶体中锥形折射的建模与应用
Byte's internal technical map is amazing and practical
Finally understand: With threads, why do we need coroutines?
Auto.js脚本程序打包
How does Redis easily achieve system instant kill?
抽象工厂模式
Learn more TypeScript 】 【 TypeScript modular
Zabbix 5.0 监控教程(二)
随机推荐
Jmeter二次开发实现rsa加密
【TypeScript】深入学习TypeScript类(下)
终于明白:有了线程,为什么还要有协程?
Win10怎么开启自带的游戏录屏功能?
四、字符常量 & 字符串
单例模式你会几种写法?
Finally understand: With threads, why do we need coroutines?
Ruoyi integrates minio to realize distributed file storage
不堪哥哥殴打谩骂,妹妹申请人身安全保护令获支持
行业 SaaS 微服务稳定性保障实战
你离「TDengine 开发者大会」只差一条 SQL 语句!
矩阵白化原理及推导
Go语言如何操作文件
go 反射 reflect 包
golang刷leetcode: 小于等于 K 的最长二进制子序列
双轴晶体中的锥形折射
圆锥折射作为偏振计量工具的模拟
无线振弦采集仪远程修改参数的方式
Word operation: adjust the English font individually
Web APIs BOM- 操作浏览器-Window对象