select TABLE_SCHEMA, concat(truncate(sum(data_length)/1024/1024,2),' MB') as data_size,
concat(truncate(sum(index_length)/1024/1024,2),'MB') as index_size
from information_schema.tables
group by TABLE_SCHEMA
order by data_length desc;
查看mysql 占用空间
最新推荐文章于 2025-05-15 19:23:58 发布
1887

被折叠的 条评论
为什么被折叠?



