mysql数据库锁死,报错 mysql add/update error:org.springframework.dao.CannotAcquireLockException
来源:互联网 发布:通达信软件的使用方法 编辑:程序博客网 时间:2024/05/20 09:24
在update数据很多的时候逐条update报错数据库表锁死:
报错:
严重: 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字段加上主键
0 0
- mysql数据库锁死,报错 mysql add/update error:org.springframework.dao.CannotAcquireLockException
- org.springframework.dao.CannotAcquireLockException
- org.springframework.dao.CannotAcquireLockException解决
- spring连mysql报错org.springframework.dao.RecoverableDataAccessException
- org.springframework.dao.CannotAcquireLockException异常分析
- mysql自动断开链接的问题,org.springframework.dao.RecoverableDataAccessException
- mysql update报错
- mysql 保存手机输入法的数据报错org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback
- org.springframework.dao.DataIntegrityViolationException Could not execute JDBC batch update
- org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update
- org.springframework.beans.factory.BeanCreationException: Error creating bean报错
- 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
- 做打印机绑定服务问题
- 一份其实很短的 LaTeX 入门文档
- git 出现502错误后用depth一步一步来
- Oracle存储过程学习
- 类与对象---day2
- mysql数据库锁死,报错 mysql add/update error:org.springframework.dao.CannotAcquireLockException
- Traveling
- 博客初衷
- CSS font-family 各名称一览表
- 你应该知道的那些超时设置或默认参数
- VS2010 安装boost库
- SIFT算法详解
- mysql 按照年龄段分组查询
- 矩形覆盖--递归实现