Mysql锁源查询

2.被阻塞的事务

mysql> select a.trx_id,a.trx_state,a.trx_mysql_thread_id,a.trx_query from information_schema.INNODB_TRX a  where trx_state='LOCK WAIT' \G
*******

你可能感兴趣的:(sql,mysql)