Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT CONCAT(table_schema, '.', table_name) AS tbl,
- CONCAT(ROUND(table_rows / 1000000, 2), 'M') ROWS,
- CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), 'G') DATA,
- CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), 'G') idx,
- CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), 'G') total_size
- FROM information_schema.TABLES
- ORDER BY data_length + index_length DESC
- LIMIT 10;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement