Error querying database. Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting

mysql事务没有提交,造成lock等待

SELECT * FROM information_schema.INNODB_TRX//查询出未提交的事务,

找到线程id:trx_mysql_thread_id的值

执行sql: kill trx_mysql_thread_id的值

猜你喜欢

转载自blog.csdn.net/zhangtongpeng/article/details/80243930