Home MySQL常用命令
Post
Cancel

MySQL常用命令

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

weixin.png

公众号名称:怪味Coding
微信扫码关注或搜索公众号名称
This post is licensed under CC BY 4.0 by the author.