Attila Bukta, PhD
Home > MySQL > Profiling Queries with SHOW STATUS

Profiling Queries with SHOW STATUS

February 13th, 2009 Leave a comment Go to comments

The combination of FLUSH STATUS and SHOW SESSSION STATUS can be used to see what happens while MySQL executes a query. First, run FLUSH STATUS to reset session status variables to zero.

mysql> FLUSH STATUS;

mysql> SELECT COUNT(*) FROM TABLE;

  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.