Skip to content

Commit

Permalink
Add interactive_timeout variable (#4172)
Browse files Browse the repository at this point in the history
* 增加 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>
  • Loading branch information
3 people authored Aug 7, 2020
1 parent 81983fd commit 7abd45b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ SET GLOBAL tidb_distsql_scan_concurrency = 10;
>
> `max_execution_time` 目前对所有类型的语句生效,并非只对 `SELECT` 语句生效,与 MySQL 不同(只对`SELECT` 语句生效)。实际精度在 100ms 级别,而非更准确的毫秒级别。
## `interactive_timeout`

- 作用域:SESSION | GLOBAL
- 默认值:28800
- 该变量表示交互式用户会话的空闲超时,单位为秒。交互式用户会话是指使用 `CLIENT_INTERACTIVE` 选项调用 [`mysql_real_connect()`](https://dev.mysql.com/doc/c-api/5.7/en/mysql-real-connect.html) API 建立的会话(例如:MySQL shell 客户端)。该变量与 MySQL 完全兼容。

## `sql_mode`

- 作用域:SESSION | GLOBAL
Expand Down

0 comments on commit 7abd45b

Please sign in to comment.