Closed nenes25 closed 2 years ago
Sql request :
SELECT TABLE_NAME, TABLE_TYPE, TABLE_COMMENT, AUTO_INCREMENT, TABLE_ROWS, round(((data_length + index_length) / 1024 / 1024), 2) "TABLE_SIZE" FROM information_schema.TABLES WHERE table_schema = DATABASE() ORDER BY (data_length + index_length) ASC;
SELECT SUM(table_rows) "DB_ROWS", round(((SUM(data_length) + SUM(index_length)) / 1024 / 1024), 2) "DB_SIZE" FROM information_schema.TABLES WHERE table_schema = DATABASE() GROUP BY table_schema
success : A table with the x biggest tables of the instance
error : no possibles errors