hibernate操作mysql时抛出Lock wait timeout exceeded; try restarting transaction异常

Lock wait timeout exceeded; try restarting transaction是锁等待超时。是当前事务在等待其它事务释放锁资源造成的。 解决方法: 在mysql查询中执行以下指令 select * from information_schema.innodb_trx 结果如图: 找出与其他几个有参数不同的线程,找出他的线程号mysql_thread_id 执行命令ki
相关文章
相关标签/搜索