摘要:
MySQL默认的空闲等待时间是8个小时,一旦空闲超过8个小时,就会抛出“Communications link failure due to underlying exception”异常,修改/etc/my.cnf(windows下为my.ini),将超时时间设置为30天,在[mysqld]后面加入:1 wait_timeout=2592000然后重启mysql服务即可。 阅读全文
posted @ 2011-12-27 16:25
小导
阅读(3885)
评论(0)
推荐(0)

浙公网安备 33010602011771号