我们可以借助 show table status 语句来检查数据库中表的状态。例如,在名为tutorial的数据库中,通过执行此语句我们可以获取表的状态如下 -
mysql> show table status \g
*************************** 1. row *************************** name: student engine: innodb version: 10 row_format: compact rows: 0 avg_row_length: 0 data_length: 16384max_data_length: 0 index_length: 0 data_free: 7340032 auto_increment: null create_time: 2017-10-24 09:34:29 update_time: null check_time: null collation: latin1_swedish_ci checksum: null create_options: comment:1 row in set (0.00 sec)
该数据库只有一个名为“student”的表。
以上就是如何检查特定mysql数据库中表的表状态?的详细内容。