How to analyze SQL queries on a MySQL server