mysql数据库的MDL锁排查

数据准备:

 

 开启一个事务:

 

 

 

 

 

 

 select * from infomation_schema.innodb_lock_waits;

select * from data_locks;

 

 selext trx_id,trx_started,trx_requested_lock_id,trx_query,trx_mysql_thread_id from information_schema.innodb_trx

 

 

 

 

show processlist

 

posted @ 2023-03-11 12:36  往事已成昨天  阅读(39)  评论(0编辑  收藏  举报