📌  相关文章
📜  每条 mysql 数据库记录从磁盘空间占用多少 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:04.799000             🧑  作者: Mango

代码示例1
SELECT table_schema as 'Database Name', 
        sum( data_length + index_length ) as 'Size-Bytes',       
        round((sum(data_length + index_length) / 1024 / 1024), 4) as 'Size-MB'
 FROM     information_schema.TABLES
 GROUP BY table_schema