mysql命令统计库大小

select concat(round(sum(DATA_LENGTH/1024/1024),2),'MB') as data

from information_schema.TABLES

where table_schema = '库名'

 

posted @ 2022-10-14 14:26  Abner3721  阅读(20)  评论(0编辑  收藏  举报