Storage

Get database sizes

  select table_schema as `database`
       , round(sum(data_length + index_length) / 1024 / 1024) as `Size (MB)`
    from information_schema.tables
group by table_schema
order by (data_length + index_length) desc;

Get table sizes

  select table_name as `table`
       , round(((data_length + index_length) / 1024 / 1024), 2) as `Size (MB)`
    from information_schema.tables
   where table_schema = "<database name>"
order by (data_length + index_length) desc;