Skip to main content
SHOW VARIABLES shows the system variables of the database. For details about system variables, see System Variables. Tip This operation does not require privileges.

Syntax

Parameters

Return value

Examples

Example 1: Show a variable by exactly matching the variable name with the LIKE clause.
Example 2: Show variables by approximately matching the variable name with the LIKE clause and the wildcard (%).
Example 3: Show a variable by exactly matching the variable name with the WHERE clause.
Example 4: Show a variable by exactly matching the value of the variable with the WHERE clause.