MySQL默认的空闲等待时间是8个小时,一旦空闲超过8个小时,就会抛出“Communications link failure due to underlying exception”异常,修改/etc/my.cnf(windows下为my.ini),将超时时间设置为30天,在[mysqld]后面加入:wait_timeout=2592000,重启。
mysql “Communications link failure due to underlying exception”问题
最新推荐文章于 2018-10-15 22:46:53 发布
本文介绍如何将MySQL的空闲等待时间从默认的8小时延长至30天,通过编辑配置文件并重启服务实现。

2249

被折叠的 条评论
为什么被折叠?



