我們可以借助 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: 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)
登錄后復制
該數據庫只有一個名為“student”的表。
以上就是如何檢查特定MySQL數據庫中表的表狀態?的詳細內容,更多請關注www.92cms.cn其它相關文章!






