Currently Drizzle offers three (3) separate query logging plugins. These plugins offer an extensible means of gathering all or selected queries and provide the foundation for a query analyser tool. Additional filtering includes selecting queries by execution time, result size, rows processed and by any given regular expression via PCRE.
During this tutorial I’ll be stepping though the various logging_query parameters which log SQL in a CSV format.
Confirm Logging Plugins
You can view the current ACTIVE plugins in Drizzle with the following SQL.
drizzle> select version(); +--------------+ | version() | +--------------+ | 2009.07.1097 | +--------------+ drizzle> select * from information_schema.plugins where plugin_name like 'logging%'; +-----------------+----------------+---------------+--------------------------------------+---------------------------------+----------------+ | PLUGIN_NAME | PLUGIN_VERSION | …[Read more]