Documentation Home
MySQL 9.2 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 40.8Mb
PDF (A4) - 40.9Mb
Man Pages (TGZ) - 259.7Kb
Man Pages (Zip) - 366.9Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


MySQL 9.2 Reference Manual  / ...  / MySQL Performance Schema  / Performance Schema Table Descriptions  /  Performance Schema System Variable Tables

29.12.14 Performance Schema System Variable Tables

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:

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_NAME

    The system variable name.

  • VARIABLE_VALUE

    The 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.

Theglobal_variables andsession_variables tables have these indexes:

  • Primary key on (VARIABLE_NAME)

Thevariables_by_thread table has these columns:

  • THREAD_ID

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

  • VARIABLE_NAME

    The system variable name.

  • VARIABLE_VALUE

    The session variable value for the session named by theTHREAD_ID column.

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.