From e66196e22aede87b5d095b0c42529bc139330c45 Mon Sep 17 00:00:00 2001 From: bb7133 Date: Sat, 8 Oct 2022 14:49:48 +0800 Subject: [PATCH 1/2] system-variables: add documents for `error_count` and `max_connections` (#10525) --- system-variables.md | 58 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 55 insertions(+), 3 deletions(-) diff --git a/system-variables.md b/system-variables.md index 87dfe0b90c2e6..068bc2283ee9c 100644 --- a/system-variables.md +++ b/system-variables.md @@ -185,6 +185,12 @@ mysql> SELECT * FROM t1; - 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 @@ -281,6 +287,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 permitted for a single TiDB instance. +- The value of `0` means no limit. + ### max_execution_time - Scope: SESSION | GLOBAL @@ -368,21 +384,57 @@ This variable is an alias for `last_insert_id`. ### 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). + + + + + - 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 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). + + + + + - 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 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 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`](https://docs.pingcap.com/tidb/stable/tidb-configuration-file#ssl-key). + + ### system_time_zone From 5fdecde68e6bc96a2844099d9b791f2b6a02fa1e Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Sat, 8 Oct 2022 16:20:02 +0800 Subject: [PATCH 2/2] Update system-variables.md --- system-variables.md | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/system-variables.md b/system-variables.md index 068bc2283ee9c..103470a39ac76 100644 --- a/system-variables.md +++ b/system-variables.md @@ -384,58 +384,22 @@ This variable is an alias for `last_insert_id`. ### 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). - - - - - -- 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). - - - - - -- 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`](https://docs.pingcap.com/tidb/stable/tidb-configuration-file#ssl-key). - - - ### system_time_zone - Scope: NONE