find largest table in mysql database

Solutions on MaxInterview for find largest table in mysql database by the best coders in the world

showing results for - "find largest table in mysql database"
Matthias
20 May 2020
1SELECT table_schema as "Database", table_name AS "Table", 
2ROUND(((data_length + index_length) / 1024 / 1024), 2) AS "Size (MB)" 
3FROM information_schema.TABLES 
4WHERE (data_length + index_length) > 1000000 
5ORDER BY table_schema, (data_length + index_length) DESC