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

mysql中用show full processlist查看所有进程,如果root用户,只能看到自己的进程,如果是root用户,可以看到当前所有用户的所有进程。
第一次碰到标题中显示的错误,以为是锁问题,但是查看了好久,不是锁的问题,是线程的问题,
用show full processlist查看所有的线程,然后杀死几个时间长的就好了。

发布了45 篇原创文章 · 获赞 0 · 访问量 1246

猜你喜欢

转载自blog.csdn.net/weixin_44853669/article/details/104675238
今日推荐