正如我們已經(jīng)檢查了MySQL數(shù)據(jù)庫(kù)的大小一樣,我們也可以檢查特定數(shù)據(jù)庫(kù)中表的大小。可以按如下方式完成 –
mysql> SELECT -> table_name AS "Table", -> round(((data_length + index_length) / 1024 / 1024), 2) as SIZE -> FROM information_schema.TABLES -> WHERE table_schema = "SAMPLE" -> ORDER BY SIZE; +-------------+-------+ | Table | SIZE | +-------------+-------+ | employee | 0.02 | | student | 0.02 | | new_student | 0.02 | +-------------+-------+ 3 rows in set (0.00 sec)
登錄后復(fù)制
這里的輸出給出了示例數(shù)據(jù)庫(kù)中三個(gè)表的大小。
以上就是如何檢查特定 MySQL 數(shù)據(jù)庫(kù)中表的大小?的詳細(xì)內(nèi)容,更多請(qǐng)關(guān)注www.92cms.cn其它相關(guān)文章!