mysql 設置 innodb_print_all_deadlocks=ON, 保存死鎖日誌
阿新 • • 發佈:2018-01-24
actions -i com var cti sco introduce led system v
error log. Otherwise, you see information about only the last deadlock, using the
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
SHOW ENGINE INNODB STATUS
command.
打開配置時,死鎖日誌存放到error_log配置的文件裏面
mysql 設置 innodb_print_all_deadlocks=ON, 保存死鎖日誌