Skip to content

Commit 7abd45b

Browse files
glkappeTomShawnlysu
authored
Add interactive_timeout variable (#4172)
* 增加 interactive_timeout 描述 pingcap/tidb#8573 * Update system-variables.md Co-authored-by: lysu <sulifx@gmail.com> Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> Co-authored-by: lysu <sulifx@gmail.com>
1 parent 81983fd commit 7abd45b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

system-variables.md

+6
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ SET GLOBAL tidb_distsql_scan_concurrency = 10;
7878
>
7979
> `max_execution_time` 目前对所有类型的语句生效,并非只对 `SELECT` 语句生效,与 MySQL 不同(只对`SELECT` 语句生效)。实际精度在 100ms 级别,而非更准确的毫秒级别。
8080
81+
## `interactive_timeout`
82+
83+
- 作用域:SESSION | GLOBAL
84+
- 默认值:28800
85+
- 该变量表示交互式用户会话的空闲超时,单位为秒。交互式用户会话是指使用 `CLIENT_INTERACTIVE` 选项调用 [`mysql_real_connect()`](https://dev.mysql.com/doc/c-api/5.7/en/mysql-real-connect.html) API 建立的会话(例如:MySQL shell 客户端)。该变量与 MySQL 完全兼容。
86+
8187
## `sql_mode`
8288

8389
- 作用域:SESSION | GLOBAL

0 commit comments

Comments
 (0)