You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: system-variables.md
+41
Original file line number
Diff line number
Diff line change
@@ -250,6 +250,12 @@ mysql> SELECT * FROM t1;
250
250
- Default value: `Apache License 2.0`
251
251
- This variable indicates the license of your TiDB server installation.
252
252
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
+
253
259
### max_allowed_packet
254
260
255
261
- Scope: GLOBAL | SESSION
@@ -269,6 +275,18 @@ mysql> SELECT * FROM t1;
269
275
>
270
276
> 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.
271
277
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
+
272
290
### port
273
291
274
292
- Scope: NONE
@@ -299,6 +317,16 @@ mysql> SELECT * FROM t1;
299
317
- Default value: ""
300
318
- The local unix socket file that the `tidb-server` is listening on when speaking the MySQL protocol.
301
319
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
+
302
330
### sql_mode
303
331
304
332
- Scope: SESSION | GLOBAL
@@ -1480,6 +1508,19 @@ SET tidb_slow_log_threshold = 200;
1480
1508
- 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'.
1481
1509
- 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.
1482
1510
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.
0 commit comments