Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 55 additions & 3 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 permitted for a single TiDB instance.
- The value of `0` means no limit.

### max_execution_time

- Scope: SESSION | GLOBAL
Expand Down Expand Up @@ -499,21 +515,57 @@ mysql> SHOW GLOBAL VARIABLES LIKE 'max_prepared_stmt_count';

### ssl_ca

<CustomContent platform="tidb">

- 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).

</CustomContent>

<CustomContent platform="tidb-cloud">

- 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).

</CustomContent>

### ssl_cert

<CustomContent platform="tidb">

- 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).

</CustomContent>

<CustomContent platform="tidb-cloud">

- 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).

</CustomContent>

### ssl_key

<CustomContent platform="tidb">

- 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).

</CustomContent>

<CustomContent platform="tidb-cloud">

- 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).

</CustomContent>

### system_time_zone

Expand Down