PDF (A4) - 40.9Mb
Man Pages (TGZ) - 259.7Kb
Man Pages (Zip) - 366.9Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb
The MySQL server maintains many system variables that indicate how it is configured (seeSection 7.1.8, “Server System Variables”). System variable information is available in these Performance Schema tables:
global_variables: Global system variables. An application that wants only global values should use this table.session_variables: System variables for the current session. An application that wants all system variable values for its own session should use this table. It includes the session variables for its session, as well as the values of global variables that have no session counterpart.variables_by_thread: Session system variables for each active session. An application that wants to know the session variable values for specific sessions should use this table. It includes session variables only, identified by thread ID.persisted_variables: Provides a SQL interface to themysqld-auto.cnffile that stores persisted global system variable settings. SeeSection 29.12.14.2, “Performance Schema persisted_variables Table”.variables_info: Shows, for each system variable, the source from which it was most recently set, and its range of values. SeeSection 29.12.14.3, “Performance Schema variables_info Table”.
TheSENSITIVE_VARIABLES_OBSERVER privilege is required to view the values of sensitive system variables in these tables.
The session variable tables (session_variables,variables_by_thread) contain information only for active sessions, not terminated sessions.
Theglobal_variables andsession_variables tables have these columns:
VARIABLE_NAMEThe system variable name.
VARIABLE_VALUEThe system variable value. For
global_variables, this column contains the global value. Forsession_variables, this column contains the variable value in effect for the current session.
Theglobal_variables andsession_variables tables have these indexes:
Primary key on (
VARIABLE_NAME)
Thevariables_by_thread table has these columns:
THREAD_IDThe thread identifier of the session in which the system variable is defined.
VARIABLE_NAMEThe system variable name.
VARIABLE_VALUEThe session variable value for the session named by the
THREAD_IDcolumn.
Thevariables_by_thread table has these indexes:
Primary key on (
THREAD_ID,VARIABLE_NAME)
Thevariables_by_thread table contains system variable information only about foreground threads. If not all threads are instrumented by the Performance Schema, this table misses some rows. In this case, thePerformance_schema_thread_instances_lost status variable is greater than zero.
TRUNCATE TABLE is not supported for Performance Schema system variable tables.
PDF (A4) - 40.9Mb
Man Pages (TGZ) - 259.7Kb
Man Pages (Zip) - 366.9Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb