1205 - Lock wait timeout exceeded; try restarting transaction, Time:
程序员文章站
2022-03-03 20:01:19
...
解决办法:
– 查询被锁语句
select * from information_schema.innodb_trx
– 我们可以用下面三张表来查原因:
-- innodb_trx 当前运行的所有事务
-- innodb_locks 当前出现的锁
-- innodb_lock_waits 锁等待的对应关系
– 找到trx_mysql_thread_id
kill 738178711
– 查询线程
SELECT * from information_schema.processlist WHERE id = 738178711;
推荐阅读
-
Lock wait timeout exceeded; try restarting transaction
-
Mysql出现“ Lock wait timeout exceeded; try restarting trans
-
[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
-
1205 - Lock wait timeout exceeded; try restarting transaction(解决备忘)
-
Lock wait timeout exceeded try restarting transaction
-
1205 - Lock wait timeout exceeded; try restarting transaction
-
Lock wait timeout exceeded; try restarting transaction