Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document a few more system variables #6492

Merged
merged 5 commits into from
Sep 30, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,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 if [TiDB Binlog](/tidb-binlog/tidb-binlog-overview.md) is used.
dveeden marked this conversation as resolved.
Show resolved Hide resolved

### max_execution_time

- Scope: SESSION | GLOBAL
Expand All @@ -205,6 +211,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
dveeden marked this conversation as resolved.
Show resolved Hide resolved

- Scope: SESSION
- Default value: ""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- The directory to load plugins from as set by the commandline flag.
dveeden marked this conversation as resolved.
Show resolved Hide resolved

### plugin_load

- Scope: SESSION
- Default value: ""
- Wait for loading of named plugins on startup. Plugins are separated by commas. This is set by a commandline flag.
dveeden marked this conversation as resolved.
Show resolved Hide resolved

### port

- Scope: NONE
Expand All @@ -218,6 +236,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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


- Scope: SESSION | GLOBAL
- Default value: `ON`
- This indicates if changes should be written to the [TiDB Binlog](/tidb-binlog/tidb-binlog-overview.md) or not.
dveeden marked this conversation as resolved.
Show resolved Hide resolved

> **Note:**
>
> Setting `sql_log_bin` as a global variable is not recommended. Future versions may only allow setting this as a session variable.
dveeden marked this conversation as resolved.
Show resolved Hide resolved

### sql_mode

- Scope: SESSION | GLOBAL
Expand Down Expand Up @@ -1381,6 +1409,18 @@ 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: ""
- If set to a non-empty value this is the UNIX epoch that is used as timestamp for `CURRENT_TIMESTAMP()`, `NOW()` and other functions. This can be used when restoring or replicating data.
dveeden marked this conversation as resolved.
Show resolved Hide resolved

### tmp_table_size
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable is deleted in #6775.


- Scope: SESSION | GLOBAL
- Default value: 16777216
- The maximum size of a temporary table in bytes
dveeden marked this conversation as resolved.
Show resolved Hide resolved

### transaction_isolation

- Scope: SESSION | GLOBAL
Expand Down