1、打开连接超时的数据库,如图

2、点击查询,进入到查询界面,如图

3、点击新建查询,进入到查询语句编辑界面,如图

4、在新建查询窗口输入命令show global variables like '%timeout%';来查看connect_timeout的连接超时时间,如图


5、然后在使用命令SET GLOBAL connect_timeout = 24*3600;来设置connect_timeout的值,这里的24是小时,3600是秒,如图

6、点击运行就完成对connect_timeout的修改了,如图
