java.lang.Exception:
### Error updating database. Cause: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
解决办法:
执行MySQL命令: show full PRocesslist;
然后找出查询语句的系统id:kill掉被锁住的线程id
查看事物表: select * from information_schema.innodb_trx;
参考文章:记一次处理MySql锁等待(Lock wait timeout exceeded):http://my.oschina.net/quanzhong/blog/222091
新闻热点
疑难解答