From 88ab98fce2f6c4b01079b420c5d006ab33969ad9 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Mon, 10 Oct 2022 13:05:49 +0800 Subject: [PATCH 1/2] sysvar: add 2 sysvars (#10662) (#10696) --- system-variables.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/system-variables.md b/system-variables.md index abeda913d87b1..fb3372366f5ba 100644 --- a/system-variables.md +++ b/system-variables.md @@ -330,15 +330,14 @@ This variable is an alias for [`last_insert_id`](#last_insert_id). - Default value: `OFF` - This variable indicates whether [TiDB Binlog](https://docs.pingcap.com/tidb/stable/tidb-binlog-overview) is used. -### max_allowed_packet +### max_allowed_packet New in v6.1.0 - Scope: SESSION | GLOBAL - Persists to cluster: Yes -- Type: Integer - Default value: `67108864` -- Range: `[1024, 1073741824]` -- Unit: Bytes -- The maximum size of a packet for the MySQL protocol. +- Range: `[1024, 1073741824]`. The value should be an integer multiple of 1024. If the value is not divisible by 1024, a warning will be prompted and the value will be rounded down. For example, when the value is set to 1025, the actual value in TiDB is 1024. +- The maximum packet size allowed by the server and the client in one transmission of packets, in bytes. +- This variable is compatible with MySQL. ### max_connections From b61e21ecf2206fa74b1b75a30c2b62ab9d732b48 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Mon, 10 Oct 2022 13:27:08 +0800 Subject: [PATCH 2/2] Update system-variables.md --- system-variables.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/system-variables.md b/system-variables.md index fb3372366f5ba..68e57e23f4366 100644 --- a/system-variables.md +++ b/system-variables.md @@ -395,15 +395,6 @@ mysql> SHOW GLOBAL VARIABLES LIKE 'max_prepared_stmt_count'; 1 row in set (0.00 sec) ``` -### max_allowed_packet New in v6.1.0 - -- Scope: SESSION | GLOBAL -- Persists to cluster: Yes -- Default value: `67108864` -- Range: `[1024, 1073741824]`. The value should be an integer multiple of 1024. If the value is not divisible by 1024, a warning will be prompted and the value will be rounded down. For example, when the value is set to 1025, the actual value in TiDB is 1024. -- The maximum packet size allowed by the server and the client in one transmission of packets, in bytes. -- This variable is compatible with MySQL. - ### plugin_dir - Scope: GLOBAL