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 all commits
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
41 changes: 41 additions & 0 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,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_allowed_packet

- Scope: GLOBAL | SESSION
Expand All @@ -269,6 +275,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: INSTANCE
- 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.

- 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 @@ -299,6 +317,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`
- 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 @@ -1480,6 +1508,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
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`
- Unit: Bytes
- Indicates the maximum size of a temporary table.

### transaction_isolation

- Scope: SESSION | GLOBAL
Expand Down