10bet网址
MySQL Performance Schema
Related Documentation Download this Excerpt
PDF (US Ltr)- 1.2Mb
PDF (A4)- 1.2Mb


MySQL Performance Schema/Performance Schema Table Descriptions/ Performance Schema System Variable Tables

10.14 Performance Schema System Variable Tables

的MySQL server maintains many system variables that indicate how it is configured (seeServer System Variables). System variable information is available in these Performance Schema tables:

SENSITIVE_VARIABLES_OBSERVERprivilege is required to view the values of sensitive system variables in these tables.

的session variable tables (session_variables,variables_by_thread) contain information only for active sessions, not terminated sessions.

global_variablesandsession_variablestables have these columns:

  • VARIABLE_NAME

    的system variable name.

  • VARIABLE_VALUE

    的system variable value. Forglobal_variables, this column contains the global value. Forsession_variables, this column contains the variable value in effect for the current session.

global_variablesandsession_variablestables have these indexes:

  • Primary key on (VARIABLE_NAME)

variables_by_threadtable has these columns:

  • THREAD_ID

    的thread identifier of the session in which the system variable is defined.

  • VARIABLE_NAME

    的system variable name.

  • VARIABLE_VALUE

    的session variable value for the session named by theTHREAD_IDcolumn.

variables_by_threadtable has these indexes:

  • Primary key on (THREAD_ID,VARIABLE_NAME)

variables_by_threadtable 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_loststatus variable is greater than zero.

TRUNCATE TABLEis not supported for Performance Schema system variable tables.