Oracle 5.0 Reference Manual page 1218

Table of Contents

Advertisement

| Created_tmp_files
...
| Open_tables
| Open_files
| Open_streams
| Opened_tables
| Questions
...
| Table_locks_immediate
| Table_locks_waited
| Threads_cached
| Threads_created
| Threads_connected
| Threads_running
| Uptime
+--------------------------+------------+
With a
LIKE
the pattern:
mysql>
SHOW STATUS LIKE 'Key%';
+--------------------+----------+
| Variable_name
+--------------------+----------+
| Key_blocks_used
| Key_read_requests
| Key_reads
| Key_write_requests | 7589728
| Key_writes
+--------------------+----------+
The
GLOBAL
displays the status values for all connections to MySQL. With SESSION, it displays the status values
for the current connection. If no modifier is present, the default is SESSION.
SESSION.
Some status variables have only a global value. For these, you get the same value for both
and SESSION. The scope for each status variable is listed at
SHOW /*!50002 GLOBAL */ STATUS;
13.7.5.33.
SHOW TABLE STATUS
SHOW TABLE STATUS [{FROM | IN} db_name]
[LIKE 'pattern' | WHERE expr]
SHOW TABLE STATUS
non-TEMPORARY
command. The
can be given to select rows using more general conditions, as discussed in
to
Statements".
SHOW
As of MySQL 5.0.1, this statement also displays information about views.
SHOW TABLE STATUS
Name
The name of the table.
| 60
| 1
| 2
| 0
| 44600
| 2026873
| 1920382
| 0
| 0
| 30022
| 1
| 1
| 80380
[896]
clause, the statement displays only rows for those variables with names that match
| Value
|
| 14955
|
| 96854827 |
| 162040
|
|
| 3813196
|
and
options are new in MySQL 5.0.2. With the
SESSION
Note
Before MySQL 5.0.2,
default as of 5.0.2 is to return session values, this is incompatible with previous
versions. To issue a
values for all versions of MySQL, write it like this:
Syntax
works likes
SHOW
table. You can also get this list using the
[896]
clause, if present, indicates which table names to match. The
LIKE
returns the following fields:
Syntax
SHOW
|
|
|
|
|
|
|
|
|
|
|
|
|
Section 5.1.6, "Server Status
returned global status values. Because the
SHOW STATUS
statement that will retrieve global status
SHOW STATUS
TABLES, but provides a lot of information about each
mysqlshow --status db_name
1198
modifier,
GLOBAL
SHOW STATUS
is a synonym for
LOCAL
GLOBAL
Variables".
WHERE
Section 19.18, "Extensions
clause

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents