Lock wait timeout exceeded; try restarting transaction
程序员文章站
2022-05-11 15:17:09
...
查看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> SELECT * FROM information_schema.INNODB_TRX\G;
trx_mysql_thread_id: 86200
现在杀死进程:
mysql> kill 86200;
Query OK, 0 rows affected (0.00 sec)
上一篇: 作为一个刚从看守所出来的人
推荐阅读
-
mysql报错:Deadlock found when trying to get lock; try restarting transaction的解决方法
-
数据库死锁的问题,Deadlock found when trying to get lock; try restarting transaction at Query.formatError
-
Lock wait timeout exceeded
-
Lock wait timeout exceeded; try restarting transaction
-
Mysql出现“ Lock wait timeout exceeded; try restarting trans
-
mysql提示 Lock wait timeout exceeded解决办法
-
[Err] 1205 - Lock wait timeout exceeded; try restarting transaction
-
[Err] 1205 - Lock wait timeout exceeded; try restarting transaction
-
mysql 1205 - Lock wait timeout exceeded; try restarting transaction
-
MySQL 1205-Lock wait timeout exceeded; try restarting transaction