广州明生医药有限公司


MySQL Variables interactive_timeout 数据库 参数变量解释及正确配置使用

网络编程 MySQL Variables interactive_timeout 数据库 参数变量解释及正确配置使用 10-17

本站中文解释

interactive_timeout是MySQL的会话超时参数,用于控制MySQL客户端连接的持续存活时间。当超过interactive_timeout设定的时间,MySQL服务端就会将客户端连接关闭。

设置interactive_timeout参数,可以登录mysql命令行,或者编辑my.cnf文件,在[mysqld]节点下添加下列语句:

interactive_timeout=600(这里可以设置600秒,600秒等于10分钟)

另外,也可以使用mysql客户端,执行下列语句来设置interactive_timeout参数:

set global interactive_timeout=600;

官方英文解释

interactive_timeout

Command-Line Format--interactive-timeout=#
System Variableinteractive_timeout
ScopeGlobal, Session
DynamicYes
TypeInteger
Default Value28800
Minimum Value1
Maximum Value31536000
Unitseconds

The number of seconds the server waits for activity on an
interactive connection before closing it. An interactive
client is defined as a client that uses the
CLIENT_INTERACTIVE option to
mysql_real_connect(). See also
wait_timeout.


编辑:广州明生医药有限公司

标签:客户端,参数,语句,就会,时间