Communications link failure解决
启动程序时报错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.
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) ~[mysql-connector-java-8.0.17.jar:8.0.17]
网上各种方式都试了,还是没有解决,最后把jdk版本降了就解决了…
其他可能的原因:
1、MySQL数据服务没有开启导致连接失败
2、MySQL数据库设置成了外网不能访问,需要开启外网IP访问的功能。
3、可能是网络问题,导致连接不上,ping一下MySQL所在主机的IP
4、数据设置wait_timeout时间,在默认配置不改变的情况下,如果连续8小时内都没有访问数据库的操作,再次访问mysql数据库的时候,mysql数据库会拒绝访问。
Communications link failure解决相关推荐
- Communications link failure 解决方法 !!!
Communications link failure 解决方法 最近在使用mybatis逆向生成的时候遇到了link failure的问题, 这里记录解决方法 文章目录 Communications ...
- Communications link failure 解决方法
文章目录 问题 解决方法 问题 No appropriate protocol (protocol is disabled or cipher suites are inappropriate 解决方 ...
- 连接数据库报错com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure的解决方法
控制台报错 Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure com. ...
- 解决——》CommunicationsException:Communications link failure
推荐链接: 总结-->[Java] 总结-->[Mysql] 总结-->[Spring] 总结-->[SpringBoot] 总结--& ...
- [08S01] Communications link failure报错解决
通过ide连接数据库或者 启动java项目的时候数据库连接不上报错 [08S01] Communications link failure The last packet sent successfu ...
- Communications link failure的解决办法
使用Connector/J连接MySQL数据库,程序运行较长时间后就会报以下错误: Communications link failure,The last packet successfully r ...
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure 数据库报错
-- 查询mysql 数据库链接空闲时间持有最大空闲时间,单位为秒 SHOW VARIABLES WHERE VAriable_name = 'interactive_timeout'; -- 会出现 ...
- Communications link failure
针对数据库Communications link failure的错误,可以理解为有两种策略解决: 策略1(推荐): 数据池配置 <property name="minEvic ...
- mysql Communications link failure druid
最近项目测试环境从公有云切换到私有云环境,代码未做改变,但是服务端访问数据库老是失败,查看日志发现以下信息: com.mysql.jdbc.exceptions.jdbc4.Communication ...
最新文章
- c语言解决函数变参数问题 va_list
- Activity-Service-Receiver-Provider
- android 弹出菜单 toast,Android学习第二天:Toast(提醒)、Menu(菜单)、Intent的显式和隐式(包括打开、适配网站,调用拨号界面等)...
- linux的yum详解,Linux之YUM 详解
- HDU-5050 java大数
- Nginx+Keepalived主备配置
- 日语口语中需要注意的问题~ 不定期更新
- linux普通用户修改root密码及获取root权限
- python模块之httplib(在py3中功能进一步强大,请详看文档)
- YOLOV5学习记录
- 计算机开启telnet服务,Telnet服务是什么?如何开启Telnet服务
- 多服务台排队系统仿真基于c语言,带优先级的多服务台排队系统Monte Carlo模拟
- 粒子滤波 PF(Particle filter)算法
- 最新php面试题及答案
- vscode 调试php 乱码,vscode调试c解决中文乱码怎么办
- shardingJdbc 的 actual-data-nodes节点扩展
- DBTC——流动性、使用人数自我驱动增长的分叉币
- java数据库中间件实现,分布式数据库中间件DDM的实现原理
- vscode开发wdk
- 脱壳入门初级教学(第四课 常见压缩壳与加密壳)
热门文章
- 物联网开发笔记(37)- 使用Micropython开发ESP32开发板之控制震动传感器(SW420)
- 运行显示epoc模拟器后十几秒后自动退出
- 报错:Avoided redundant navigation to current location: “/login“.完美解决
- html圆如何找到垂直中心线,HTML+CSS入门 7种方式实现垂直居中
- 【每日早报】2019/12/19
- 人事管理系统设计总结
- 白硕携智子社区登顶纳斯达克
- 预测中的各种数据处理
- dddddddddddd
- java long valueof_Java Long类的valueOf()方法及示例