mysql> set global innodb_print_all_deadlocks = ON;
Query OK, 0 rows affected (0.00 sec)

mysql> show variables like 'innodb_print_all_deadlocks';
+----------------------------+-------+
| Variable_name              | Value |
+----------------------------+-------+
| innodb_print_all_deadlocks | ON    |
+----------------------------+-------+
1 row in set (0.01 sec)
  • mysql 服务重启后,就off 了.......

  • /etc/my.cnf 文件中修改或增加配置,注意增加的位置[mysqld] 的下面,否则无效;

innodb_print_all_deadlocks = ON

相关文章:

  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-21
  • 2022-03-05
  • 2022-12-23
  • 2021-04-29
  • 2022-02-08
  • 2021-10-14
相关资源
相似解决方案