什么会导致MySQL中trx_query null的事务长时间运行?
查询: 结果:什么会导致MySQL中trx_query null的事务长时间运行?,mysql,innodb,Mysql,Innodb,查询: 结果: SELECT trx_id, trx_state, timestampdiff( SECOND, trx_started, now() ) duration, trx_query FROM information_schema.INNODB_TRX; 我注意到一个非常有趣的交易: trx_id trx_state duration trx_query 329182111765896 RUNNIN
SELECT
trx_id,
trx_state,
timestampdiff(
SECOND,
trx_started,
now()
) duration,
trx_query
FROM information_schema.INNODB_TRX;
我注意到一个非常有趣的交易:
trx_id trx_state duration trx_query
329182111765896 RUNNING 25043
7511439990 RUNNING 26
7511442157 LOCK WAIT 22 select * from...
7511442102 LOCK WAIT 22 update `xxx` set ...
329182111487256 RUNNING 0 select * from ...
这是一个运行时间很长的事务,带有trx_query null。怎么会这样?该交易的可能原因是什么?您找到原因了吗?
329182111765896 RUNNING 25043