mysql查询各个数据库大小

//各个数据大小 数据单位M

select table_schema ,round(sum(data_length/1024/1024),2) as size from information_schema.tables group by table_schema order by size desc ;

//数据库整个大小,单位M

select round(sum(data_length/1024/1024),2) as size from  information_schema.tables;

猜你喜欢

转载自blog.csdn.net/bestmover/article/details/82893613