mysql的异常:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
来源:互联网 发布:淘宝都要交保证金吗 编辑:程序博客网 时间:2024/06/05 18:42
org.fkjava.ec.exception.EcException: org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:3039)
at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:624)
... 60 more
由于MySQL服务在长时间不连接之后断开了,断开之后的首次请求会抛出这个异常。
解决方案:
win7系统
开始 --》管理工具--》组件服务---》服务(本地)--》选中MySql --》重启动此服务
- mysql的异常:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- 解决com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- 解决com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure 解决办法
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- catalan 数 标准二维表。 高精度计算。
- 每天一个linux命令(16):which命令
- 虚拟机中安装linux
- xcode一些常用的快捷键
- [ javascript ] JavaScript 开发者经常忽略或误用的七个基础知识点
- mysql的异常:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- Google GoAgent 翻墙图文配置详解
- Filesys.exe Boot Process (Windows CE 5.0) 英文
- 随心所“语”之“做”与“想”
- 《创客》的读后感
- Simplify Path 简化文件路径@LeetCode
- 一次崩溃的Mysql乱码问题
- Nk.exe Boot Process (Windows CE 5.0) 英文
- 了解Unity中的多线程及使用多线程