com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
2014-03-16 07:54
447 查看
mysql﹥ show global variables like 'wait_timeout';
+---------------+---------+
| Variable_name | Value |
+---------------+---------+
| wait_timeout | 28800 |
+---------------+---------+
1 row in set (0.00 sec)
修改mysql5的配置文件my.ini增加一行:
wait_timeout=1814400
需要重新启动mysql5。
linux系统配置文件:/etc/my.cnf
测试显示问题解决了。
+---------------+---------+
| Variable_name | Value |
+---------------+---------+
| wait_timeout | 28800 |
+---------------+---------+
1 row in set (0.00 sec)
修改mysql5的配置文件my.ini增加一行:
wait_timeout=1814400
需要重新启动mysql5。
linux系统配置文件:/etc/my.cnf
测试显示问题解决了。
相关文章推荐
- MySQL连接超时Communications link failure
- 解决 Communications link failure due to underlying exception
- Communications link failure,The last packet successfully received from the server was *** millisecon
- Communications link failure:The last packet sent successfully to the server was 0 milliseconds ago.
- dataSource : com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- Communications link failure
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure 数据库报错
- Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- MQ:Communications link failure
- mysql Communications link failure Last packet sent to the server was X ms ago
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- quartz Couldn't rollback jdbc connection. Communications link failure during rollback().
- com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
- mysql异常CommunicationsException: Communications link failure的解决方案
- 走近SSH之Hibernate--com.mysql.jdbc.CommunicationsException: Communications link failure due to underlyi
- 驱动注册成功 com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.Conn
- mysql: Communications link failure
- MySql的Communications link failure解决办法
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure