mysql 設置 innodb_print_all_deadlocks=ON, 保存死鎖日志


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配置的文件里面


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM