[+/-]
The MySQL Query Analyzer can be fed information from a number of different sources, in each case with the provider supplying the statistical information about the queries, execution times, result counts and other data to be displayed and analyzed with the Query Analyzer tab within MySQL Enterprise Dashboard.
There are a number of different methods available for supplying query information to MySQL Enterprise Service Manager:
Using the MySQL Proxy functionality built into MySQL Enterprise Agent. This is the method offered and supported since MySQL Enterprise Monitor 2.0.
When using the proxy, queries from the client application are directed through the proxy to the MySQL server, with all results from the MySQL server being returned from the proxy to the client application. While this transmission of information takes place, the proxy component keeps statistical information and supplies this information to MySQL Enterprise Service Manager for analysis.
The following figure shows the structure of this process in relation to the MySQL server containing the client application data, the client application, and the MySQL Enterprise Monitor components:
For more information on using this method, see Section 3.1.5, “Using the Agent Proxy”.
Use a MySQL connector with a corresponding MySQL Enterprise Monitor Plugin that provides tracing and statistical information directly to MySQL Enterprise Service Manager.
Using this method requires a connector that is capable of collecting and sending the query statistical data directly to MySQL Enterprise Service Manager. The connectors handles all of the collection of the basic query statistics, such as the execution time for each query, and the row counts, and provides this information to MySQL Enterprise Service Manager for analysis. This solution negates the need the proxy component, providing you with maximum speed between your application, connector and MySQL server containing your client application data.
The following figure shows the structure of this solution:
For more information on using this method, see the following table for information on which connectors support this method of operation.
Using a MySQL connector with a corresponding MySQL Enterprise Monitor Plugin that uses the aggregator functionality in MySQL Enterprise Agent to communicate information to MySQL Enterprise Service Manager.
Using the aggregator method, the MySQL Connector communicates raw statistical information about the queries and then sends this information to the MySQL Enterprise Agent, which aggregates the information into a format suitable for MySQL Enterprise Service Manager to perform the analysis and present the information.
For more information on using this method, see the following table for information on which connectors support this method of operation.
Different connectors support either the direct and aggregator methods of supplying statistical information through a plugin that provides the necessary code to communicate either directly with MySQL Enterprise Service Manager, or indirectly through the MySQL Enterprise Agent aggregator. The following table provides information on which connectors support the different functionality types.
Table 3.1. Query Analyzer Feeding Solution Comparison
| Feature | C/Java | C/NET | C/PHP | Proxy |
|---|---|---|---|---|
| Uses Aggregator | No | No | Yes | No |
| Uses Proxy | No | No | No | Yes |
| Supports EXPLAIN | Yes | Yes | No | Yes |
