show variables like 'innodb_status_output';blog
set GLOBAL innodb_status_output=ON;innodb
set GLOBAL innodb_status_output_locks=ON;select
select @@log_error;im
show VARIABLES like 'general%';error
SHOW VARIABLES LIKE 'INNODB_PRINT_ALL_DEADLOCKS';db
SET GLOBAL innodb_print_all_deadlocks=1;img
show engine innodb status ;co
SHOW MASTER LOGS;ps
flush logs; ab
相互碰撞,就死鎖了