作者:518094haha | 来源:互联网 | 2023-10-11 19:50
MySQL事务没有提交导致锁等待Lockwaittimeoutexceededjava.lang.Exception:###Errorupdatingdatabase.Caus
MySQL
事务没有提交导致 锁等待 Lock wait timeout exceededjava.lang.Exception:
###
Error updating database. Cause: java.sql.SQLException: Lock wait timeout
exceeded; try restarting transaction
### The error may involve
defaultParameterMap
### The error occurred while setting parameters
###
Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting
transaction
; SQL []; Lock wait timeout exceeded; try restarting transaction;
nested exception is java.sql.SQLException: Lock wait timeout exceeded; try
restarting transaction
select
* from information_schema.innodb_trx
这里可以查看当前的被锁信息
mysql Lock wait timeout exceeded