SELECT COUNT(*) AS Total_Table_Count ,table_schema ,CONCAT(ROUND(SUM(table_rows)/1000000,2),'M') AS Total_Row_Count ,CONCAT(ROUND(SUM(data_length)/(1024*1024*1024),2),'G') AS Total_Table_Size ,CONCAT(ROUND(SUM(index_length)/(1024*1024*1024),2),'G') AS Total_Table_Index ,CONCAT(ROUND(SUM(data_length+index_length)/(1024*1024*1024),2),'G') Total_Size FROM information_schema.TABLES GROUP BY table_schema ORDER BY SUM(data_length+index_length);