To focus on just one point for OTN appreciation day on October 11 2016 and to the benefit of all users of MySQL is to consider the extremely convenient and rich value of information available in the MySQL Performance Schema to understand what SQL queries are running in a MySQL instance now. The MySQL Performance Schema in MySQL 5.6 is enabled by default, (performance_schema=on).
The following one off SQL statement will enable the
instrumentation of SQL statements in the most detailed level of
assessment.
The following query will show you the longest running queries in
your database at this present time.
This ease of accessing what is running in a MySQL instance replaces many different and creative techniques …
[Read more]