How to get tables statistics / tables status in MySQL

MySQL tables statistics / MySQL tables status 

To get the MySQL table status and to get more information about table (size, engine, no. of rows etc.), following is the very useful command.

SHOW TABLE STATUS [{FROM | IN} db_name] [LIKE 'pattern' | WHERE expr]
//If you have selected a database then run the following command:

MySQL returns information about all the tables in the selected database. For more info about what MySQL returns,

If you want to see information about a particular table in a particular database then you run the command as follows:

SHOW TABLE STATUS FROM <database name> LIKE '<table name>'

Leave a Reply