Documentation Home
MySQL 8.0 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 43.3Mb
PDF (A4) - 43.4Mb
Man Pages (TGZ) - 297.1Kb
Man Pages (Zip) - 402.3Kb
Info (Gzip) - 4.3Mb
Info (Zip) - 4.3Mb
Excerpts from this Manual

MySQL 8.0 Reference Manual  / ...  / MySQL Server Administration  / The MySQL Server  /  Server Status Variables

7.1.10 Server Status Variables

The MySQL server maintains many status variables that provide information about its operation. You can view these variables and their values by using theSHOW [GLOBAL | SESSION] STATUS statement (seeSection 15.7.7.37, “SHOW STATUS Statement”). The optionalGLOBAL keyword aggregates the values over all connections, andSESSION shows the values for the current connection.

mysql> SHOW GLOBAL STATUS;+-----------------------------------+------------+| Variable_name                     | Value      |+-----------------------------------+------------+| Aborted_clients                   | 0          || Aborted_connects                  | 0          || Bytes_received                    | 155372598  || Bytes_sent                        | 1176560426 |...| Connections                       | 30023      || Created_tmp_disk_tables           | 0          || Created_tmp_files                 | 3          || Created_tmp_tables                | 2          |...| Threads_created                   | 217        || Threads_running                   | 88         || Uptime                            | 1389872    |+-----------------------------------+------------+

Many status variables are reset to 0 by theFLUSH STATUS statement.

This section provides a description of each status variable. For a status variable summary, seeSection 7.1.6, “Server Status Variable Reference”. For information about status variables specific to NDB Cluster, seeSection 25.4.3.9.3, “NDB Cluster Status Variables”.

The status variables have the following meanings.