From 21a97d78b411e396d4c88f686deb2b2b5c1b13a3 Mon Sep 17 00:00:00 2001 From: JoyinQin <56883733+Joyinqin@users.noreply.github.com> Date: Mon, 17 Aug 2020 09:51:57 +0800 Subject: [PATCH 1/2] Update system-variables.md --- system-variables.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system-variables.md b/system-variables.md index bc538e4673b70..45a5a4d39bf65 100644 --- a/system-variables.md +++ b/system-variables.md @@ -71,6 +71,12 @@ SET GLOBAL tidb_distsql_scan_concurrency = 10; > > Unlike in MySQL, the `max_execution_time` system variable currently works on all kinds of statements in TiDB, not only restricted to the `SELECT` statement. The precision of the timeout value is roughly 100ms. This means the statement might not be terminated in accurate milliseconds as you specify. +### `interactive_timeout` + +- Scope: SESSION | GLOBAL +- Default value: 28800 +- This variable represents the idle timeout of the interactive user session, which is measured in seconds. Interactive user session refers to the session established by calling [`mysql_real_connect()`](https://dev.mysql.com/doc/c-api/5.7/en/mysql-real-connect.html) API using the `CLIENT_INTERACTIVE` option (for example, MySQL shell client). This variable is fully compatible with MySQL. + ### sql_mode - Scope: SESSION | GLOBAL From 1f700cb570e31c1964d1e74ff627b9f0429a5537 Mon Sep 17 00:00:00 2001 From: JoyinQin <56883733+Joyinqin@users.noreply.github.com> Date: Mon, 17 Aug 2020 09:58:09 +0800 Subject: [PATCH 2/2] Update system-variables.md --- system-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-variables.md b/system-variables.md index 45a5a4d39bf65..db9536352dcaa 100644 --- a/system-variables.md +++ b/system-variables.md @@ -75,7 +75,7 @@ SET GLOBAL tidb_distsql_scan_concurrency = 10; - Scope: SESSION | GLOBAL - Default value: 28800 -- This variable represents the idle timeout of the interactive user session, which is measured in seconds. Interactive user session refers to the session established by calling [`mysql_real_connect()`](https://dev.mysql.com/doc/c-api/5.7/en/mysql-real-connect.html) API using the `CLIENT_INTERACTIVE` option (for example, MySQL shell client). This variable is fully compatible with MySQL. +- This variable represents the idle timeout of the interactive user session, which is measured in seconds. Interactive user session refers to the session established by calling [`mysql_real_connect()`](https://dev.mysql.com/doc/c-api/5.7/en/mysql-real-connect.html) API using the `CLIENT_INTERACTIVE` option (for example, MySQL shell client). This variable is fully compatible with MySQL. ### sql_mode