com.mysql.cj.jdbc.exceptions.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction

在这里插入图片描述1:select * from information_schema.innodb_trx;
查询出来的trx_mysql_thread_id这个字段是被锁线程id
2:kill trx_mysql_thread_id的值就可以

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐