SHOW DIST VARIABLE

Description

The SHOW DIST VARIABLE syntax is used to query PROXY system variables configuration.

Syntax

Grammar Railroad diagram

  1. ShowDistVariable ::=
  2. 'SHOW' 'DIST' ('VARIABLES' ('LIKE' likePattern)?| 'VARIABLE' 'WHERE' 'NAME' '=' variableName)
  3. likePattern ::=
  4. string
  5. variableName ::=
  6. identifier

Return Value Description

ColumnsDescription
variable_namesystem variable name
variable_valuesystem variable value

Supplement

  • When variableName is not specified, the default is query all PROXY variables configuration.

Example

  • Query all system variables configuration of PROXY
  1. SHOW DIST VARIABLES;
  1. mysql> SHOW DIST VARIABLES;
  2. +---------------------------------------+-----------------+
  3. | variable_name | variable_value |
  4. +---------------------------------------+-----------------+
  5. | agent_plugins_enabled | true |
  6. | cached_connections | 0 |
  7. | cdc_server_port | 33071 |
  8. | check_table_metadata_enabled | false |
  9. | kernel_executor_size | 0 |
  10. | max_connections_size_per_query | 1 |
  11. | proxy_backend_query_fetch_size | -1 |
  12. | proxy_default_port | 3307 |
  13. | proxy_frontend_database_protocol_type | |
  14. | proxy_frontend_executor_size | 0 |
  15. | proxy_frontend_flush_threshold | 128 |
  16. | proxy_frontend_max_connections | 0 |
  17. | proxy_frontend_ssl_cipher | |
  18. | proxy_frontend_ssl_enabled | false |
  19. | proxy_frontend_ssl_version | TLSv1.2,TLSv1.3 |
  20. | proxy_meta_data_collector_enabled | true |
  21. | proxy_netty_backlog | 1024 |
  22. | sql_federation_type | NONE |
  23. | sql_show | false |
  24. | sql_simple | false |
  25. | system_log_level | INFO |
  26. +---------------------------------------+-----------------+
  27. 21 rows in set (0.01 sec)
  • Query specified system variable configuration of PROXY
  1. SHOW DIST VARIABLE WHERE NAME = sql_show;
  1. mysql> SHOW DIST VARIABLE WHERE NAME = sql_show;
  2. +---------------+----------------+
  3. | variable_name | variable_value |
  4. +---------------+----------------+
  5. | sql_show | false |
  6. +---------------+----------------+
  7. 1 row in set (0.00 sec)

Reserved word

SHOW, DIST, VARIABLE, VARIABLES, NAME