Information Schema SYSTEM_VARIABLES Table
The Information Schema SYSTEM_VARIABLES table contains all system variables and their current global or session values.
The Information Schema SYSTEM_VARIABLES table shows current values and various metadata of all system variables.
It contains the following columns:
VARIABLE_NAME
System variable name.
SESSION_VALUE
Session value of the variable or NULL if the variable only has a global scope.
GLOBAL_VALUE
Global value of the variable or NULL if the variable only has a session scope.
GLOBAL_VALUE_ORIGIN
How the global value is set — a compile-time default, auto-configured by the server, configuration file (or on a command line), with the SQL statement.
DEFAULT_VALUE
Compile-time default value of the variable.
VARIABLE_SCOPE
Global, session, or session-only.
VARIABLE_TYPE
Data type of the variable value.
VARIABLE_COMMENT
Help text, usually shown in mariadbd --help --verbose.
NUMERIC_MIN_VALUE
For numeric variables — minimal allowed value.
NUMERIC_MAX_VALUE
For numeric variables — maximal allowed value.
NUMERIC_BLOCK_SIZE
For numeric variables — a valid value must be a multiple of the "block size".
ENUM_VALUE_LIST
For ENUM, SET, and FLAGSET variables — the list of recognized values.
READ_ONLY
Whether a variable can be set with the SQL statement. Note that many "read only" variables can still be set on the command line.
COMMAND_LINE_ARGUMENT
Whether an argument is required when setting the variable on the command line. NULL when a variable can not be set on the command line.
GLOBAL_VALUE_PATH
Which config file the variable got its value from. NULL if not set in any config file.
IS_DEPRECATED
Used to identify deprecated variables in the server configuration (in an option file or on the command line). Available from MariaDB 13.0.
DEPRECATED_REPLACEMENT
The replacement of a deprecated variable. If NULL, there is no replacement. Available from MariaDB 13.0.
Examples
Show Values of a Specific Variable
Show Deprecated Variables That are set in the Configuration File
This query shows variables used in your server deployment that are deprecated:
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?

