No cache version.

Caching disabled. Default setting for this page:enabled (code DEF204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher dans le manuel MySQL

13.7.6.35 SHOW STATUS Syntax

  1.     [LIKE 'pattern' | WHERE expr]

SHOW STATUS provides server status information (see Section 5.1.10, “Server Status Variables”). This statement does not require any privilege. It requires only the ability to connect to the server.

Status variable information is also available from these sources:

For SHOW STATUS, a LIKE clause, if present, indicates which variable names to match. A WHERE clause can be given to select rows using more general conditions, as discussed in Section 25.42, “Extensions to SHOW Statements”.

SHOW STATUS accepts an optional GLOBAL or SESSION variable scope modifier:

  • With a GLOBAL modifier, the statement displays the global status values. A global status variable may represent status for some aspect of the server itself (for example, Aborted_connects), or the aggregated status over all connections to MySQL (for example, Bytes_received and Bytes_sent). If a variable has no global value, the session value is displayed.

  • With a SESSION modifier, the statement displays the status variable values for the current connection. If a variable has no session value, the global value is displayed. LOCAL is a synonym for SESSION.

  • If no modifier is present, the default is SESSION.

The scope for each status variable is listed at Section 5.1.10, “Server Status Variables”.

Each invocation of the SHOW STATUS statement uses an internal temporary table and increments the global Created_tmp_tables value.

Partial output is shown here. The list of names and values may differ for your server. The meaning of each variable is given in Section 5.1.10, “Server Status Variables”.

  1. mysql> SHOW STATUS;
  2. +--------------------------+------------+
  3. | Variable_name            | Value      |
  4. +--------------------------+------------+
  5. | Aborted_clients          | 0          |
  6. | Aborted_connects         | 0          |
  7. | Bytes_received           | 155372598  |
  8. | Bytes_sent               | 1176560426 |
  9. | Connections              | 30023      |
  10. | Created_tmp_disk_tables  | 0          |
  11. | Created_tmp_tables       | 8340       |
  12. | Created_tmp_files        | 60         |
  13. ...
  14. | Open_tables              | 1          |
  15. | Open_files               | 2          |
  16. | Open_streams             | 0          |
  17. | Opened_tables            | 44600      |
  18. | Questions                | 2026873    |
  19. ...
  20. | Table_locks_immediate    | 1920382    |
  21. | Table_locks_waited       | 0          |
  22. | Threads_cached           | 0          |
  23. | Threads_created          | 30022      |
  24. | Threads_connected        | 1          |
  25. | Threads_running          | 1          |
  26. | Uptime                   | 80380      |
  27. +--------------------------+------------+

With a LIKE clause, the statement displays only rows for those variables with names that match the pattern:

  1. mysql> SHOW STATUS LIKE 'Key%';
  2. +--------------------+----------+
  3. | Variable_name      | Value    |
  4. +--------------------+----------+
  5. | Key_blocks_used    | 14955    |
  6. | Key_read_requests  | 96854827 |
  7. | Key_reads          | 162040   |
  8. | Key_write_requests | 7589728  |
  9. | Key_writes         | 3813196  |
  10. +--------------------+----------+

Find a PHP function

Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-show-status.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:en Manuel MySQL : https://dev.mysql.com/

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut