NickName:Simon Hodgson Ask DateTime:2009-09-15T16:05:46 MySQL Connector/Net Trace 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. Copyright Notice:Content Author:「Simon Hodgson」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.Link to original article:https://stackoverflow.com/questions/1425809/mysql-connector-net-trace Answers Vladislav Rastrusny 2009-09-16T14:19:22 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.",