当前位置:Gxlcms > 数据库问题 > mysql 设置 innodb_print_all_deadlocks=ON, 保存死锁日志

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

时间:2021-07-01 10:21:17 帮助过:13人阅读

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

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

标签:ted   mic   error log   class   and   oss   info   dev   border   

人气教程排行