select * from information_schema.innodb_trx
查看 trx_mysql_thread_id

show processlist
kill 100070;

 

引起的问题:并发下spring事务造成了死锁。

为什么会造成死锁呢?

start transaction;
update yrProduction SET productQuotedPrice = 100 WHERE recId = 1;
COMMIT;

开启事务但是不提交,另外再开启事务,会等待,然后等待一会变running态了,不知道为什么。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-12-16
  • 2021-07-14
猜你喜欢
  • 2021-10-08
  • 2021-08-04
  • 2021-08-23
  • 2021-11-06
相关资源
相似解决方案