当前位置:网站首页>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语句),结果没有响应,即连接失败。
边栏推荐
猜你喜欢
随机推荐
谷粒商城-day14-商城业务与压力测试
你我都会遇到的需求:如何导出MySQL中的数据~ 简单!实用!
总数据量超万亿行,玉溪卷烟厂通过正确选择时序数据库轻松应对
CS5213 chip | HDMI to VGA converter chip data sharing
[c] Detailed explanation of operators (1)
Ansible installation and configuration
@Transactional 事务调用与生效场景总结
【DEBUG】ImportError: Unable to import required dependencies: numpy: DLL load failed: 找不到指定的模块。
双轴晶体中的锥形折射
管理工具|宝藏书签收藏管理工具
Web APIs BOM- 操作浏览器-Window对象
SRv6网络演进面临的挑战
Intensive reading of the Swin Transformer paper and analysis of its model structure
[Dry goods] Best practice of sub-library and sub-table
Word operation: adjust the English font individually
【STM32学习3】DMA基础操作
Flink-SQL
如何通过 IDEA 数据库管理工具连接 TDengine?
总结嵌入式C语言难点(2部分)
go os 包