Skip Site Navigation «

dbrowse

app«dbrowse
MySQL

Show Table Status

This node is informative and descriptive.
[definitions]

Query Path

laz/tables

Interactive Path

Synopsis

This node is a summary view of all tables in the current database.
To list all tables in a database, use this query:

mysql> show table status from database_name;

or the short and sweet:

mysql> show tables;

to list all tables in the active database.

Node/View

Note: The column headers in the table below are links to additional information further down the page.

Database laz: Show Table Status.
mysql> show table status from laz;
Table Type Format Rows Size Data Keys Meta
33 rows in set (0.0014 seconds)
MyISAM Fixed 240 53 12.4k 4.0k
MyISAM Fixed 133 76 9.9k 5.0k
MyISAM Fixed 725 131 92.7k 24.0k
MyISAM Fixed 3 101 0.3k 1.0k
MyISAM Fixed 28 151 4.1k 5.0k
MyISAM Fixed 187 93 17.0k 15.0k
MyISAM Fixed 214 5 1.0k 4.0k
MyISAM Fixed 60 34 2.0k 2.0k
MyISAM Fixed 68 35 2.3k 5.0k
MyISAM Fixed 24 51 1.2k 3.0k
MyISAM Fixed 44 127 5.5k 7.0k
MyISAM Fixed 32 69 2.2k 3.0k
MyISAM Dynamic 2 96 0.2k 3.0k
MyISAM Fixed 28 43 1.2k 3.0k
MyISAM Dynamic 63 233 14.4k 2.0k
MyISAM Fixed 36 38 1.3k 3.0k
MyISAM Fixed 69 5 0.3k 2.0k
MyISAM Fixed 65 130 8.3k 7.0k
MyISAM Fixed 27 5 0.1k 2.0k
MyISAM Fixed 28 50 1.4k 3.0k
MyISAM Fixed 64 5 0.3k 2.0k
MyISAM Fixed 47 50 2.3k 5.0k
MyISAM Fixed 105 5 0.5k 3.0k
MyISAM Fixed 145 5 0.7k 2.0k
MyISAM Fixed 970 462 437.6k 40.0k
MyISAM Fixed 5 5 0.0k 2.0k
MyISAM Fixed 3 130 0.4k 3.0k
MyISAM Fixed 28 5 0.1k 2.0k
MyISAM Fixed 266 21 5.5k 14.0k
MyISAM Fixed 4175 5 20.4k 43.0k
MyISAM Fixed 27 11 0.3k 2.0k
MyISAM Fixed 1 469 0.5k 3.0k
MyISAM Fixed 19 178 3.3k 6.0k

[skip to the dbrowse Navigation information]

Description of Results

For detailed documentation regarding the information displayed on this page, visit the MySQL Reference Manual section on Show Table Status. Brief descriptions are listed below, some of which have links to more specific sections of the manual.

Please! Do NOT be a victim of jargon and terminology. A “field” and a “column” are the same thing. A “record” and a “row” are the same thing!

MySQL Terms

Table
The name of the table in the database. This may seem over-simplified, but it merits mentioning. To begin with, all tables are stored as files on the host machine and thus have any restrictions on filenames based on the OS of the host machine. A database is really nothing but a directory to hold these files. Although it is quite common to use a MySQL client program to access databases via a server on another host, in rare cases will the two machines be running on different platforms. For this tutorial, the client and the server are running on the same host, which is a FreeBSD box. Meaning I have few restrictions on filenames and, more importantly, they are case-sensitive. See Identifier Case Sensitivity for more details. To view one table’s structure, select it from the column list.
Type
The is the Storage Engine used by the table. For this Web site, the databases consist mostly of MyISAM tables. I will be getting into InnoDB and Memory (Heap) tables in a later series. See also Storage Engines in the reference manual.
Format
This is the row storage format. Generally that means either fixed, or variable-length records. There are advantages to both, but I prefer fixed-length when I can avoid variable-length records, for performance reasons. See also Storage Requirements.

Note: You cannot have both fixed and variable-length column types in the same table. This is a source of some confusion among new MySQL users. See Silent Column Changes for more details.
Rows
The number of records in the table. For MyISAM tables this is accurate, for other table types it may be an approximation.
Size
The size, or “width” of one record, in bytes. Again, depending on the column types, and even the table type, this could be only an approximation. Hint: variable-length columns.
Data
For most Storage Engines such as MyISAM, this is the size, on disk, occupied by the data in the table. In kilobytes.
Keys
Storage, on disk, occupied by the indexes in the table. Also in kilobytes.
Meta
This is a summary view for all tables in the current database. The Meta view will give you complete metadata on each of these tables. See directly below.

To view the structural/schema information for a single table, follow that path by selecting the table name from the left-hand column. For detailed metadata information on any table, follow the » link on the far right. To continue browsing this database, use your Web browser’s navigation features such as the back and forward buttons, the Backspace key, or the query or interactive path interfaces provided with this application.

Last updated: Tuesday, February 28th, 2006 @ 2:38 AM EST [2006-02-28T07:38:14Z]   home

(c) 2006-2008, Douglas W. Clifton, loadaveragezero.com, all rights reserved.