Skip to content

Commit

Permalink
Document a few more system variables (#6492) (#6587)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Sep 30, 2021
1 parent 99195bb commit 4b8cbd8
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@ mysql> SELECT * FROM t1;
- Default value: `Apache License 2.0`
- This variable indicates the license of your TiDB server installation.

### log_bin

- Scope: NONE
- Default value: `OFF`
- This variable indicates whether [TiDB Binlog](/tidb-binlog/tidb-binlog-overview.md) is used.

### max_execution_time

- Scope: SESSION | GLOBAL
Expand All @@ -204,6 +210,18 @@ mysql> SELECT * FROM t1;
>
> 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.
### plugin_dir

- Scope: INSTANCE
- Default value: ""
- Indicates the directory to load plugins as specified by a command-line flag.

### plugin_load

- Scope: INSTANCE
- Default value: ""
- Indicates the plugins to load when TiDB is started. These plugins are specified by a command-line flag and separated by commas.

### port

- Scope: NONE
Expand Down Expand Up @@ -234,6 +252,16 @@ mysql> SELECT * FROM t1;
- Default value: ""
- The local unix socket file that the `tidb-server` is listening on when speaking the MySQL protocol.
### sql_log_bin
- Scope: SESSION | GLOBAL
- Default value: `ON`
- Indicates whether to write changes to [TiDB Binlog](/tidb-binlog/tidb-binlog-overview.md) or not.
> **Note:**
>
> It is not recommended to set `sql_log_bin` as a global variable because the future versions of TiDB might only allow setting this as a session variable.
### sql_mode
- Scope: SESSION | GLOBAL
Expand Down Expand Up @@ -1395,6 +1423,19 @@ SET tidb_slow_log_threshold = 200;
- This variable returns the current time zone. Values can be specified as either an offset such as '-8:00' or a named zone 'America/Los_Angeles'.
- The value `SYSTEM` means that the time zone should be the same as the system host, which is available via the [`system_time_zone`](#system_time_zone) variable.
### timestamp
- Scope: SESSION
- Default value: ""
- A non-empty value of this variable indicates the UNIX epoch that is used as the timestamp for `CURRENT_TIMESTAMP()`, `NOW()`, and other functions. This variable might be used in data restore or replication.
### tmp_table_size
- Scope: SESSION | GLOBAL
- Default value: `16777216`
- Unit: Bytes
- Indicates the maximum size of a temporary table.
### transaction_isolation
- Scope: SESSION | GLOBAL
Expand Down

0 comments on commit 4b8cbd8

Please sign in to comment.