小导的博客

成功的人不是赢在起点,而是赢在转折点,机会是献给有准备的人。

Mysql数据库“Communications link failure due to underlying exception”问题

MySQL默认的空闲等待时间是8个小时,一旦空闲超过8个小时,就会抛出“Communications link failure due to underlying exception”异常,修改/etc/my.cnf(windows下为my.ini),将超时时间设置为30天,在[mysqld]后面加入:

1 wait_timeout=2592000

然后重启mysql服务即可。

posted on 2011-12-27 16:25 小导 阅读(156) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航:
 

导航

统计

常用链接

留言簿

随笔档案

搜索

最新评论

阅读排行榜

评论排行榜