use information_schema;select concat(round(sum(DATA_LENGTH/1024/1024),2),'MB') as data from TABLES;select concat(round(sum(DATA_LENGTH/1024/1024/1024/1024),2),'TB') as data from TABLES;