MySQL 连接超时,不活动 [英] MySQL connection timeout, inactivity

查看:59
本文介绍了MySQL 连接超时,不活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 MySQL 服务器,我希望它停止丢弃不活动的连接.我需要调整哪个选项?MySQL 服务器安装在 Windows 机器上.

I have MySQL server installed and I would like it to stop dropping inactive connections. Which option do I need to adjust? The MySQL server is installed on a Windows machine.

谢谢

推荐答案

您正在寻找 MySQL wait_timeout 变量.

You are looking for the MySQL wait_timeout variable.

SET @@GLOBAL.wait_timeout=2147483

这篇关于MySQL 连接超时,不活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆