MySQL :: MySQL 8.0 Reference Manual :: 29.12.21.9 The tls_channel_status Table (original) (raw)

29.12.21.9 The tls_channel_status Table

Connection interface TLS properties are set at server startup, and can be updated at runtime using theALTER INSTANCE RELOAD TLS statement. SeeServer-Side Runtime Configuration and Monitoring for Encrypted Connections.

The tls_channel_status table (available as of MySQL 8.0.21) provides information about connection interface TLS properties:

mysql> SELECT * FROM performance_schema.tls_channel_status\G
*************************** 1. row ***************************
 CHANNEL: mysql_main
PROPERTY: Enabled
   VALUE: Yes
*************************** 2. row ***************************
 CHANNEL: mysql_main
PROPERTY: ssl_accept_renegotiates
   VALUE: 0
*************************** 3. row ***************************
 CHANNEL: mysql_main
PROPERTY: Ssl_accepts
   VALUE: 2
...
*************************** 29. row ***************************
 CHANNEL: mysql_admin
PROPERTY: Enabled
   VALUE: No
*************************** 30. row ***************************
 CHANNEL: mysql_admin
PROPERTY: ssl_accept_renegotiates
   VALUE: 0
*************************** 31. row ***************************
 CHANNEL: mysql_admin
PROPERTY: Ssl_accepts
   VALUE: 0
...

The tls_channel_status table has these columns:

The properties exposed by this table are not fixed and depend on the instrumentation implemented by each channel.

For each channel, the row with a PROPERTY value of Enabled indicates whether the channel supports encrypted connections, and other channel rows indicate TLS context properties:

SHOW GLOBAL STATUS LIKE 'current_tls%';  
SHOW GLOBAL STATUS LIKE 'ssl%';  

The tls_channel_status table has no indexes.

TRUNCATE TABLE is not permitted for the tls_channel_status table.