让mysql server打印trace日志 Leave a Comment / Database / March 6, 2012 March 6, 2012 mysql server里面内置了一个类于似log4j的日志框架,以输出mysqld执行时产生的trace log. 要让mysql服务器在运行时输出此类trace log,可以这样启动mysql: (for version 5.1) mysqld --debug=d:F:L:n:O,trace.log:t 具体参数见下图:(摘自 ‘Expert MySQL’)