Documentation Home
MySQL 5.7 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 35.1Mb
PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
Excerpts from this Manual

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

5.1.9 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 13.7.5.35, “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 5.1.5, “Server Status Variable Reference”. For information about status variables specific to NDB Cluster, seeSection 21.4.3.9.3, “NDB Cluster Status Variables”.

The status variables have the meanings shown in the following list.