修改mysql连接超时时间
如何修改mysql连接超时时间呢
通过下面命令可以查看mysql超时时间
show global variables like '%timeout%'
下面命令可以修改对应参数
SET GLOBAL connect_timeout = 160
注意重启系统后参数将会无效哦
如何修改mysql连接超时时间呢
通过下面命令可以查看mysql超时时间
show global variables like '%timeout%'
下面命令可以修改对应参数
SET GLOBAL connect_timeout = 160
注意重启系统后参数将会无效哦