SHOW-CONFIG
Name
SHOW CONFIG
Description
This statement is used to display the configuration of the current cluster.
grammar:
SHOW (FRONTEND|BACKEND) CONFIG [LIKE "pattern"];
The columns in the results of showing FE configuration have the following meanings:
- Key: Configuration item name
- Value: Configuration item value
- Type: Configuration item type
- IsMutable: Whether it can be set by ADMIN SET CONFIG command
- MasterOnly: Is it only applicable to Master FE
- Comment: Configuration item description
The columns in the results of showing BE configuration have the following meanings:
- BackendId: ID of a backend
- Host: Host of a backend
- Key: Configuration item name
- Value: Configuration item value
- Type: Configuration item type
- IsMutable: Whether it can be modified
Example
-
View the configuration of the current FE node
SHOW FRONTEND CONFIG;
-
Use the like predicate to search the configuration of the current Fe node
mysql> SHOW FRONTEND CONFIG LIKE '%check_java_version%'; +--------------------+-------+---------+---------- -+------------+---------+ | Key | Value | Type | IsMutable | MasterOnly | Comment | +--------------------+-------+---------+---------- -+------------+---------+ | check_java_version | true | boolean | false | false | | +--------------------+-------+---------+---------- -+------------+---------+ 1 row in set (0.01 sec)
-
View the configuration for a specific BE using the backend ID
10001
SHOW BACKEND CONFIG FROM 10001;
-
View the configuration useing both a pattern and a backend ID
mysql> SHOW BACKEND CONFIG LIKE "be_port" FROM 10001; +-----------+---------------+---------+-------+---------+-----------+ | BackendId | Host | Key | Value | Type | IsMutable | +-----------+---------------+---------+-------+---------+-----------+ | 10001 | xx.xx.xxx.xxx | be_port | 9060 | int32_t | false | +-----------+---------------+---------+-------+---------+-----------+
Keywords
SHOW, CONFIG