mysql 设置 innodb_print_all_deadlocks=ON, 保存死锁日志

时间:2018-01-24 17:29:18   收藏:0   阅读:1417
Introduced 5.6.2
Command-Line Format --innodb-print-all-deadlocks=#
System Variable Name innodb_print_all_deadlocks
Scope Global
Dynamic Yes
Permitted Values Type boolean
Default OFF

When this option is enabled, information about all deadlocks in InnoDB user transactions is recorded in the mysqld error log. Otherwise, you see information about only the last deadlock, using the SHOW ENGINE INNODB STATUS command. 

 

打开配置时,死锁日志存放到error_log配置的文件里面

原文:https://www.cnblogs.com/yuyutianxia/p/8342650.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!