MySQL语句查看各个数据库占用空间
查看数据占用
select concat(round(sum(DATA_LENGTH/1024/1024),2),'M') from information_schema.tables where table_schema='CandleData';
查看索引占用
select concat(round(sum(INDEX_LENGTH/1024/1024),2),'M') from information_schema.tables where table_schema='CandleData';
查
原创
2020-12-23 17:14:20 ·
483 阅读 ·
0 评论