From 7ffc140f88521921bb1e061b9749101b82aa6408 Mon Sep 17 00:00:00 2001 From: bb7133 Date: Thu, 22 Sep 2022 23:07:32 +0800 Subject: [PATCH 1/3] system-variables: add documents for `error_count` and `max_connections` --- system-variables.md | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/system-variables.md b/system-variables.md index 07eb494fb1d3c..9d27f4963fe16 100644 --- a/system-variables.md +++ b/system-variables.md @@ -225,6 +225,12 @@ For more possible values of this variable, see [Authentication plugin status](/s - Range: `[0, 7]` - Sets the week format used by the `WEEK()` function. +### error_count + +- Scope: NONE +- Type: Integer +- A read-only variable that indicates the number of errors that resulted from the last statement that generated messages. + ### foreign_key_checks - Scope: SESSION | GLOBAL @@ -335,6 +341,16 @@ This variable is an alias for `last_insert_id`. - Unit: Bytes - The maximum size of a packet for the MySQL protocol. +### max_connections + +- Scope: GLOBAL +- Persists to cluster: No +- Type: Integer +- Default value: `0` +- Range: `[0, 100000]` +- The maximum number of connections for a single TiDB instance. +- The value of `0` means no limit. + ### max_execution_time - Scope: SESSION | GLOBAL @@ -501,19 +517,19 @@ mysql> SHOW GLOBAL VARIABLES LIKE 'max_prepared_stmt_count'; - Scope: NONE - Default value: "" -- The location of the certificate authority file (if there is one). +- The location of the certificate authority file (if there is one), the value of this variable is defined by [`ssl-ca` configuration](https://docs.pingcap.com/tidb/dev/tidb-configuration-file#ssl-ca). ### ssl_cert - Scope: NONE - Default value: "" -- The location of the certificate file (if there is a file) that is used for SSL/TLS connections. +- The location of the certificate file (if there is a file) that is used for SSL/TLS connections, the value of this variable is defined by [`ssl-cert` configuration](https://docs.pingcap.com/tidb/dev/tidb-configuration-file#ssl-cert). ### ssl_key - Scope: NONE - Default value: "" -- The location of the private key file (if there is one) that is used for SSL/TLS connections. +- The location of the private key file (if there is one) that is used for SSL/TLS connections, the value of this variable is defined by [`ssl-key` configuration](https://docs.pingcap.com/tidb/dev/tidb-configuration-file#ssl-cert). ### system_time_zone From 6e2b4bf2f854d28dcddae38d3f469ff2c050c940 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Sat, 8 Oct 2022 14:27:52 +0800 Subject: [PATCH 2/3] Apply suggestions from code review --- system-variables.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system-variables.md b/system-variables.md index 9d27f4963fe16..0a081b5ddd00f 100644 --- a/system-variables.md +++ b/system-variables.md @@ -348,7 +348,7 @@ This variable is an alias for `last_insert_id`. - Type: Integer - Default value: `0` - Range: `[0, 100000]` -- The maximum number of connections for a single TiDB instance. +- The maximum number of connections permitted for a single TiDB instance. - The value of `0` means no limit. ### max_execution_time @@ -517,19 +517,19 @@ mysql> SHOW GLOBAL VARIABLES LIKE 'max_prepared_stmt_count'; - Scope: NONE - Default value: "" -- The location of the certificate authority file (if there is one), the value of this variable is defined by [`ssl-ca` configuration](https://docs.pingcap.com/tidb/dev/tidb-configuration-file#ssl-ca). +- The location of the certificate authority file (if there is one), the value of this variable is defined by the TiDB configuration item [`ssl-ca`](/tidb-configuration-file.md#ssl-ca). ### ssl_cert - Scope: NONE - Default value: "" -- The location of the certificate file (if there is a file) that is used for SSL/TLS connections, the value of this variable is defined by [`ssl-cert` configuration](https://docs.pingcap.com/tidb/dev/tidb-configuration-file#ssl-cert). +- The location of the certificate file (if there is a file) that is used for SSL/TLS connections, the value of this variable is defined by the TiDB configuration item [`ssl-cert`](/tidb-configuration-file.md#ssl-cert). ### ssl_key - Scope: NONE - Default value: "" -- The location of the private key file (if there is one) that is used for SSL/TLS connections, the value of this variable is defined by [`ssl-key` configuration](https://docs.pingcap.com/tidb/dev/tidb-configuration-file#ssl-cert). +- The location of the private key file (if there is one) that is used for SSL/TLS connections, the value of this variable is defined by TiDB configuration item [`ssl-key`](/tidb-configuration-file.md#ssl-cert). ### system_time_zone From 27988cfd19224a264bbc99957431f941cbe289cb Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Sat, 8 Oct 2022 14:43:40 +0800 Subject: [PATCH 3/3] add custom content --- system-variables.md | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/system-variables.md b/system-variables.md index 0a081b5ddd00f..1f85fafcf0eae 100644 --- a/system-variables.md +++ b/system-variables.md @@ -515,21 +515,57 @@ mysql> SHOW GLOBAL VARIABLES LIKE 'max_prepared_stmt_count'; ### ssl_ca + + - Scope: NONE - Default value: "" -- The location of the certificate authority file (if there is one), the value of this variable is defined by the TiDB configuration item [`ssl-ca`](/tidb-configuration-file.md#ssl-ca). +- The location of the certificate authority file (if there is one). The value of this variable is defined by the TiDB configuration item [`ssl-ca`](/tidb-configuration-file.md#ssl-ca). + + + + + +- Scope: NONE +- Default value: "" +- The location of the certificate authority file (if there is one). The value of this variable is defined by the TiDB configuration item [`ssl-ca`](https://docs.pingcap.com/tidb/stable/tidb-configuration-file#ssl-ca). + + ### ssl_cert + + - Scope: NONE - Default value: "" -- The location of the certificate file (if there is a file) that is used for SSL/TLS connections, the value of this variable is defined by the TiDB configuration item [`ssl-cert`](/tidb-configuration-file.md#ssl-cert). +- The location of the certificate file (if there is a file) that is used for SSL/TLS connections. The value of this variable is defined by the TiDB configuration item [`ssl-cert`](/tidb-configuration-file.md#ssl-cert). + + + + + +- Scope: NONE +- Default value: "" +- The location of the certificate file (if there is a file) that is used for SSL/TLS connections. The value of this variable is defined by the TiDB configuration item [`ssl-cert`](https://docs.pingcap.com/tidb/stable/tidb-configuration-file#ssl-cert). + + ### ssl_key + + +- Scope: NONE +- Default value: "" +- The location of the private key file (if there is one) that is used for SSL/TLS connections. The value of this variable is defined by TiDB configuration item [`ssl-key`](/tidb-configuration-file.md#ssl-cert). + + + + + - Scope: NONE - Default value: "" -- The location of the private key file (if there is one) that is used for SSL/TLS connections, the value of this variable is defined by TiDB configuration item [`ssl-key`](/tidb-configuration-file.md#ssl-cert). +- The location of the private key file (if there is one) that is used for SSL/TLS connections. The value of this variable is defined by TiDB configuration item [`ssl-key`](https://docs.pingcap.com/tidb/stable/tidb-configuration-file#ssl-key). + + ### system_time_zone