mysql查看数据库大小
1. 查看数据库总体大小
// An highlighted block
select concat(round(sum(data_length/1024/1024),2),'MB') as data from tables;
2.查看某一个数据库的大小
// An highlighted block
select concat(round(sum(data_length/1024/1024),2),'MB') as data from tables where table_schema='数据库名字';
3.查看某一数据库中某一个表的名称
// An highlighted block
select concat(round(sum(data_length/1024/1024),2),'MB') as data from tables where table_schema='库名' and table_name='表名';