- information_schema 库的 innodb_trx 这个表中查询长事务,比如查找持续时间超过 60s 的事务
1
select * from information_schema.innodb_trx where TIME_TO_SEC(timediff(now(),trx_started))>60

1
select * from information_schema.innodb_trx where TIME_TO_SEC(timediff(now(),trx_started))>60

A new version of content is available.