Page History
For Sniffer
SQL DM for MySQL Query Sniffer is a functionality that records a pseudo server log and stores it in the SQL DM for MySQL embedded database. With Query sniffer enabled, SQL DM for MySQL can populate the pseudo server log in three different ways at the intervals you specify:
...
Tip |
---|
For MySQL 5.6.14 and above you can use Performance schema, Proxy, and Processlist for query analysis. If using MySQL version less than 5.6.14 then only Proxy or Processlist can be used in SQL DM for MySQL. |
...
SQL DM for MySQL uses performance schema statement digest table(events_statements_summary_by_digest)
to get the above information and is dependent on the statements_digest in setup_consumers table. By default, this option is enabled. If not, you can disable it can be enabled by executing the following:
...
Example query is available in events_statements_history_long
table and has to be enabled and is dependent on the events_statements_history_long
in setup_consumers table. By default, this is not enabled and should be enabled by executing the following:
Code Block | ||
---|---|---|
| ||
UPDATE performance_schema.setup_consumers SET enabled = 'YES' WHERE name = 'events_statements_history_long'; |
...
Warning |
---|
With the General Query Log there are few specific problems:
You can sort the display by clicking on the column header. Note that statement grouping/counting and sorting is case insensitive. |