Home  >  Article  >  Backend Development  >  关于wait_timeout的一些有关问题

关于wait_timeout的一些有关问题

WBOY
WBOYOriginal
2016-06-13 10:59:04947browse

关于wait_timeout的一些问题
先看下定义

(1)interactive_timeout:
参数含义:服务器关闭交互式连接前等待活动的秒数。交互式客户端定义为在mysql_real_connect()中使用CLIENT_INTERACTIVE选项的客户端。
参数默认值:28800秒(8小时)

(2)wait_timeout:
参数含义:服务器关闭非交互连接之前等待活动的秒数。
在线程启动时,根据全局wait_timeout值或全局interactive_timeout值初始化会话wait_timeout值,取决于客户端类型(由mysql_real_connect()的连接选项CLIENT_INTERACTIVE定义)。
参数默认值:28800秒(8小时)

问题1:何为交互式、非交互式?
问题2:上面说 关闭链接前等待的秒数,这句话怎么理解?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn