查看innodb的事务表INNODB_TRX,看下里面是否有正在锁定的事务线程,看看ID是否在show full processlist里面的sleep线程中,如果是,就证明这个线程事务一直没有commit或者rollback而是卡住了,我们需要手动kill掉。
mysql> SELECT * FROM information_schema.INNODB_TRX\G;
trx_mysql_thread_id: 86200
现在杀死进程:
mysql> kill 86200;
Query OK, 0 rows affected (0.00 sec)
相关文章
- MySQL死锁:Lock wait timeout exceeded; try restarting transaction
- mysql : Lock wait timeout exceeded; try restarting transaction
- mysql遇到锁 或者Lock wait timeout exceeded; try restarting transaction
- MySql Lock wait timeout exceeded该如何处理? (转载)
- ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction的问题解决(备忘)
- mysql 操作突然断网,MySQL: “lock wait timeout exceeded”
- mysql中Lock wait timeout exceeded; try restarting transaction
- 【mybatis】mybatis执行一个update方法,返回值为1,但是数据库中数据并未更新,粘贴sql语句直接在数据库执行,等待好久报错:Lock wait timeout exceeded; try restarting transaction
- Mysql事物锁等待超时Lock wait timeout exceeded;的解决
- mysql报错:Deadlock found when trying to get lock; try restarting transaction的解决方法