1.进入information_schema库
    use information_schema;
    2.查看整个数据库大小
    select concat(round(sum(data_length/1024/1024),2),’MB’) as data from tables;
    3.查看数据库“home”的大小
    select concat(round(sum(data_length/1024/1024),2),’MB’) as data from tables where table_schema=’home’;
    4.查看数据库“home”里的“members”表的大小
    select concat(round(sum(data_length/1024/1024),2),’MB’) as data from tables where table_schema=’home’ and table_name=’members’;