1、
use information_schema;
2、
select concat(round(sum(data_length/1024/1024),2),'MB') as data from tables where table_schema='dbname';