Skip to content

Instantly share code, notes, and snippets.

@hdemon
Created February 8, 2014 16:48
Show Gist options
  • Save hdemon/8886522 to your computer and use it in GitHub Desktop.
Save hdemon/8886522 to your computer and use it in GitHub Desktop.
select table_name, engine, table_rows as tbl_rows, avg_row_length as rlen, floor((data_length+index_length)/1024/1024) as allMB, floor((data_length)/1024/1024) as dMB, floor((index_length)/1024/1024) as iMB from information_schema.tables where table_schema=database() order by (data_length+index_length) desc;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment