Can somebody please help me with a query that lists the most used tables in a MySQL database? Or how can i find out the most used tables in the database?



show open tables might help you or you can view queries from general log if enabled. You can also check binary logs from mysqlbinlog utility for further analysis.

Hope it help.


MYSQL WorkBench is available from MYSQL Downloads. Very useful, once you install it go to Performance > Performance Reports > Database Schema Statistics > Schema Tables Statistics. You can see all tables that been used, sort out the list by number of I/O Reads, for example and then you can see your most frequently read tables. You can sort a list of tables by number of updated rows/inserted rows/update time and etc. MYSQL Workbench is a very useful tool.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.