Logo
Variables

Variables #

SyntaxDescriptionType
SHOW DIST VARIABLESQuery all properties for proxyRQL
SHOW DIST VARIABLE WHERE name = variable_nameQuery specified property for proxyRQL
SET DIST VARIABLE variable_name = xxConfig propertyRAL

1. Query All Properties For Proxy #

SHOW DIST VARIABLES

Parameter Explanation

None

Example

SHOW DIST VARIABLES

2. Query Specified Property For Proxy #

SHOW DIST VARIABLE WHERE name = variable_name

Example

SHOW DIST VARIABLE WHERE name = sql_show;

3. Config Property #

SET DIST VARIABLE variable_name = xx

Example

SET DIST VARIABLE sql_show = true

Special variable configuration list

ExampleDescription
SHOW DIST VARIABLE WHERE name = transaction_typeQuery transaction type
SET DIST VARIABLE transaction_type = XAModify the transaction type of the current connection, support LOCAL, XA, BASE
SHOW DIST VARIABLE WHERE name = agent_plugins_enabledQuery the enabling status of the agent plugin
SET DIST VARIABLE agent_plugins_enabled = trueConfig the enabling status of the agent plugin, the value is boolean
SHOW DIST VARIABLE WHERE name = cached_connectionsQuery the number of connections currently cached
SHOW DIST VARIABLE WHERE name = general_query_logQuery the enabling status of full logs
SET DIST VARIABLE general_query_log = trueConfig the enabling status of full logs
SHOW DIST VARIABLE WHERE name = slow_query_logQuery the enabling status of slow logs
SET DIST VARIABLE slow_query_log = trueConfig the enabling status of full logs
SHOW DIST VARIABLE WHERE name = long_query_timeQuery slow query threshold
SET DIST VARIABLE long_query_time = 5000Config slow query threshold, in millisecond