Table of Contents [+/-]
The MySQL Query Analyzer lets you monitor SQL statements executed on a MySQL server and see details about each query, as well as number of executions and execution times. Similar queries with different literal values are combined (normalized) for reporting purposes.
Query Analyzer collects information about SQL statements that a MySQL client application sends to the MySQL server. There are different methods that the Query Analyzer can receive this information, which are:
Using the Performance Schema statement digests with MySQL Server 5.6.14 and above, data can be gathered directly from MySQL Server without requiring additional configuring. Simply point a MySQL Enterprise Agent at the MySQL Server, and Query Analyzer information will be available to MySQL Enterprise Service Manager.
The client application can route its database requests through the 2.3 MySQL Enterprise Agent proxy service.
Once your MySQL client application is configured to communicate via the MySQL Enterprise Agent, queries are monitored and the normalized queries are sent to the MySQL Enterprise Agent.
For the different ways to enable Query Analysis, see Section 7.1, “Providing Query Analyzer Data”. For the user interface of the Query Analyzer, see Section 4.6, “The Query Analyzer” and Section 7.2, “Query Analyzer User Interface”.
The 2.3 MySQL Proxy component and Query Analyzer require that
clients connecting through MySQL Enterprise Agent use MySQL 5.0 or later.
Clients that use the
provided with MySQL 4.1 or earlier do not work with
MySQL Enterprise Agent.
Once the data is collected, you view and monitor the queries, check the execution statistics, and filter and drill down on the information. By comparing the queries to the server graphs, you can correlate query execution with server status. For more information on viewing, filtering and reporting on the Query Analyzer data, see Section 7.2, “Query Analyzer User Interface”.
When MySQL Enterprise Monitor is not accessible from a
query analyzer plugin, then the application performance will not
be impacted. Over time, the plugin will determine that a backlog
of reportable data exists, and fall back to consolidating it over
longer ranges of time. But if more than 1,000 canonical queries
are being used by the application (an unlikely scenario), then
data will begin to be dropped.
MySQL Enterprise Monitor is available as part of the MysQL Enterprise
subscription, learn more at