当开启事务后,程序挂了而事务没有提交,那么会被锁住,报错:连接超时,但不影响查询。
  下面操作需要权限
    一、查询现在被占用的锁信息
  
   select * from information_schema.innodb_trx

 二、 kill掉线程

kill [ trx_mysql_thread_id ]

  mysql·事务挂起

 

相关文章:

  • 2022-02-07
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案