org.springframework.dao.CannotAcquireLockException
来源:互联网 发布:不要root的录像软件 编辑:程序博客网 时间:2024/05/17 09:28
org.springframework.dao.CannotAcquireLockException
严重: mysql add/update error:org.springframework.dao.CannotAcquireLockException:
原因一:数据库表没有主键
解决方案:
解决方案:
1.查看锁死的表:show OPEN TABLES where In_use > 0;
2.查看进程:SHOW PROCESSLIST
3.kill掉导致锁死操作的进程ID:kill id
4.解锁后给id字段加上主键
原因二:update的条件没有索引,导致查询过慢
解决方案:where条件加索引
解决方案:where条件加索引
阅读全文
0 0
- org.springframework.dao.CannotAcquireLockException
- org.springframework.dao.CannotAcquireLockException解决
- org.springframework.dao.CannotAcquireLockException异常分析
- mysql数据库锁死,报错 mysql add/update error:org.springframework.dao.CannotAcquireLockException
- org.springframework.dao.InvalidDataAccessApiUsageException
- org.springframework.dao.InvalidDataAccessApiUsageException
- org.springframework.dao.DataIntegrityViolationException:
- org.springframework.dao.InvalidDataAccessApiUsageException
- org.springframework.dao.InvalidDataAccessApiUsageException
- org/springframework/dao/DataAccessException
- org.springframework.dao.InvalidDataAccessApiUsageException
- org.springframework.dao.TransientDataAccessResourceException
- org.springframework.dao.InvalidDataAccessApiUsageException
- org.springframework.dao.DuplicateKeyException:
- org.springframework.dao.InvalidDataAccessApiUsageException
- org.springframework.dao.DataIntegrityViolationException
- org.springframework.dao.InvalidDataAccessApiUsageException
- org.springframework.dao.DataIntegrityViolationException
- 数值的扩展
- 机器学习终极总结——朴素贝叶斯法
- OJ 2600: 编程题A-无字天书
- ascii 字符整型的自动识别
- 双十一 唯品会内部优惠入口
- org.springframework.dao.CannotAcquireLockException
- iTerm2连接远程主机
- IntelliJ IDEA环境下 POI读写Exel文件
- S2-052(CVE-2017-9805)
- SQL操作数据——SQL组成,查询基础语法,where,Oracle常用函数等
- 解决使用Vue.js显示数据的时,页面闪现原始代码
- Tablayout和Viewpager,listview
- 应用密码学(学习整理、一)
- matlab存放自己写的函数,可以供其它函数调用