我們可以借助 show table status 語(yǔ)句來(lái)檢查數(shù)據(jù)庫(kù)中表的狀態(tài)。例如,在名為tutorial的數(shù)據(jù)庫(kù)中,通過(guò)執(zhí)行此語(yǔ)句我們可以獲取表的狀態(tài)如下 –
mysql> show table status \G
登錄后復(fù)制
*************************** 1. row *************************** Name: student Engine: InnoDB Version: 10 Row_format: Compact Rows: 0 Avg_row_length: 0 Data_length: 16384 Max_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)
登錄后復(fù)制
該數(shù)據(jù)庫(kù)只有一個(gè)名為“student”的表。
以上就是如何檢查特定MySQL數(shù)據(jù)庫(kù)中表的表狀態(tài)?的詳細(xì)內(nèi)容,更多請(qǐng)關(guān)注www.92cms.cn其它相關(guān)文章!