让mysql server打印trace日志

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’)

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.