-
Notifications
You must be signed in to change notification settings - Fork 705
Document a few more system variables #6492
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
Changes from all commits
7fea7a7
b02e351
696e734
cdaefbb
e744743
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
||
- Scope: INSTANCE | ||
- Default value: "" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
Uh oh!
There was an error while loading. Please reload this page.