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;