/* Just add EXPLAIN in front of SELECT... */ EXPLAIN SELECT * FROM db.table;