1.查看锁信息参数是否开启:show variables like '%innodb%' 查看innodb_status_output_locks 参数是否开启; 2.查看锁信息:show engine innodb status\G