Checking out the state of tables of your MySQL setup in production is important for fine tuning server parameters. MySQL's SHOW TABLE STATUS command comes very handy in determining table states from a running environment. Here, I explain the output of the command.
mysql> SHOW TABLE STATUS LIKE 'mytable' \G
****************** 1. row ******************
Name: mytable
Engine: InnoDB
Version: 9
Row_format: Dynamic
Rows: 2465222
Avg_row_length: 370
Data_length: 913326080
Max_data_length: NULL
Index_length: 146817024
Data_free: 0
Auto_increment: 18357110
Create_time: 2007-05-11 22:27:56
Update_time: NULL
Check_time: NULL
Collation: latin1_swedish_ci
Checksum: NULL
Create_options:
Comment: InnoDB free: 869376 kB
1 row in set (0.34 sec)
Leaving behind the obvious …
[Read more]