title | summary |
---|---|
Server Status Variables |
Use status variables to see the system and session status |
Server status variables provide information about the global status of the server and the status of the current session in TiDB. Most of these variables are designed to be compatible with MySQL.
You can retrieve the global status using the SHOW GLOBAL STATUS command, and the status of the current session using the SHOW SESSION STATUS command.
Additionally, the FLUSH STATUS command is supported for MySQL compatibility.
- Scope: SESSION
- Type: Boolean
- Indicates if the MySQL Protocol uses compression or not.
- Scope: SESSION
- Type: String
- Indicates the compression algorithm that is used for the MySQL Protocol.
- Scope: SESSION
- Type: Integer
- The compression level that is used for the MySQL Protocol.
- Scope: SESSION | GLOBAL
- Type: String
- TLS Cipher that is in use.
- Scope: SESSION | GLOBAL
- Type: String
- The list of TLS Ciphers that the server supports.
- Scope: SESSION | GLOBAL
- Type: Date
- The expiration date of the X.509 certificate of the server that is used for TLS connections.
- Scope: SESSION | GLOBAL
- Type: String
- The start date of the X.509 certificate of the server that is used for TLS connections.
- Scope: SESSION | GLOBAL
- Type: Integer
- The TLS verification mode bitmask.
- Scope: SESSION | GLOBAL
- Type: String
- The version of the TLS protocol that is used
- Scope: SESSION | GLOBAL
- Type: Integer
- Uptime of the server in seconds.
- Scope: SESSION | GLOBAL
- Type: Integer
- The version of the DDL schema that is used.
- Scope: SESSION
- Type: Timestamp
- The time and date of the last plan binding update.
- Scope: SESSION | GLOBAL
- Type: String
- The UUID of the server.
- Scope: SESSION | GLOBAL
- Type: String
- The timestamp of the last run of GC.
- Scope: SESSION | GLOBAL
- Type: String
- Information about GC leader, including the hostname and process id (pid).
- Scope: SESSION | GLOBAL
- Type: String
- The timestamp of the GC lease.
- Scope: SESSION | GLOBAL
- Type: String
- The UUID of the GC leader.
- Scope: SESSION | GLOBAL
- Type: String
- The timestamp of the GC safe point.