Skip to content

Commit 4d728aa

Browse files
authoredSep 30, 2021
Document a few more system variables (#6492)
1 parent 13dc9a4 commit 4d728aa

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
 

‎system-variables.md

+41
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,12 @@ mysql> SELECT * FROM t1;
250250
- Default value: `Apache License 2.0`
251251
- This variable indicates the license of your TiDB server installation.
252252

253+
### log_bin
254+
255+
- Scope: NONE
256+
- Default value: `OFF`
257+
- This variable indicates whether [TiDB Binlog](/tidb-binlog/tidb-binlog-overview.md) is used.
258+
253259
### max_allowed_packet
254260

255261
- Scope: GLOBAL | SESSION
@@ -269,6 +275,18 @@ mysql> SELECT * FROM t1;
269275
>
270276
> 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.
271277
278+
### plugin_dir
279+
280+
- Scope: INSTANCE
281+
- Default value: ""
282+
- Indicates the directory to load plugins as specified by a command-line flag.
283+
284+
### plugin_load
285+
286+
- Scope: INSTANCE
287+
- Default value: ""
288+
- Indicates the plugins to load when TiDB is started. These plugins are specified by a command-line flag and separated by commas.
289+
272290
### port
273291

274292
- Scope: NONE
@@ -299,6 +317,16 @@ mysql> SELECT * FROM t1;
299317
- Default value: ""
300318
- The local unix socket file that the `tidb-server` is listening on when speaking the MySQL protocol.
301319
320+
### sql_log_bin
321+
322+
- Scope: SESSION | GLOBAL
323+
- Default value: `ON`
324+
- Indicates whether to write changes to [TiDB Binlog](/tidb-binlog/tidb-binlog-overview.md) or not.
325+
326+
> **Note:**
327+
>
328+
> 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.
329+
302330
### sql_mode
303331
304332
- Scope: SESSION | GLOBAL
@@ -1480,6 +1508,19 @@ SET tidb_slow_log_threshold = 200;
14801508
- 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'.
14811509
- 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.
14821510
1511+
### timestamp
1512+
1513+
- Scope: SESSION
1514+
- Default value: ""
1515+
- 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.
1516+
1517+
### tmp_table_size
1518+
1519+
- Scope: SESSION | GLOBAL
1520+
- Default value: `16777216`
1521+
- Unit: Bytes
1522+
- Indicates the maximum size of a temporary table.
1523+
14831524
### transaction_isolation
14841525
14851526
- Scope: SESSION | GLOBAL

0 commit comments

Comments
 (0)