您的位置:首页 > 数据库 > MySQL

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
测试显示问题解决了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐