tags:

views:

74

answers:

2

Does anyone know a way to enabled Tracing using a TraceListener for the MySQL Connector/net I'd like it to log the SQL Queries that are actually run against the DB, i.e. see the SQL with the parameter values substituted in.

+2  A: 

You can use slow_query_log paramter for inspecting queries that come to your server as of mysql 5.1.21. Just set slow_query_log = 0 and use the option --log-slow-queries[=file_name]. That's all.

FractalizeR
A: 

I only know of a program for this: Jet Profiler for MySQL (not free)

www.jetprofiler.com/

ppuschmann