没有建立索引导致Lock wait timeout exceeded
2011-06-23 17:54
323 查看
把数据库从sqlserver2000导进mysql之后,所有表上的index都没有导过来,结果,修改数据时正常,添加数据时,同时向两个表中加记录,就会提示:
org.springframework.orm.hibernate3.HibernateSystemException: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction; nested exception is org.hibernate.HibernateException: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:676)
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
at org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:694)
......
把所有表上的index建好之后 ,程序运行正常了。
org.springframework.orm.hibernate3.HibernateSystemException: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction; nested exception is org.hibernate.HibernateException: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:676)
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424)
at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
at org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:694)
......
把所有表上的index建好之后 ,程序运行正常了。
相关文章推荐
- 排查MySQL事务没有提交导致 锁等待 Lock wait timeout exceeded
- MySQL 事务没有提交导致 锁等待 Lock wait timeout exceeded
- MySQL 事务没有提交导致 锁等待 Lock wait timeout exceeded
- MySQL 事务没有提交导致 锁等待 Lock wait timeout exceeded
- MySQL 事务没有提交导致 锁等待 Lock wait timeout exceeded
- MySQL 事务没有提交导致 锁等待 Lock wait timeout exceeded
- MySQL 事务没有提交导致 锁等待 Lock wait timeout exceeded
- MySQL 事务没有提交导致 锁等待 Lock wait timeout exceeded
- 【MySQL】事务没有提交导致 锁等待Lock wait timeout exceeded异常
- MySQL_事务没有提交导致 锁等待 Lock wait timeout exceeded
- MySQL 事务没有提交导致 锁等待 Lock wait timeout exceeded
- 【MySQL】事务没有提交导致 锁等待Lock wait timeout exceeded异常的处理办法
- 事务没有提交导致 锁等待Lock wait timeout exceeded异常
- MySQL 事务没有提交导致 锁等待 Lock wait timeout exceeded
- mysql事务没有提交导致 锁等待Lock wait timeout exceeded异常
- MySQL 事务没有提交导致 锁等待 Lock wait timeout exceeded
- mysql因为锁等待导致导入用户失败(Lock wait timeout exceeded; try restarting transaction)
- 重复add或update导致ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction
- magento索引报错的解决:General error: 1205 Lock wait timeout exceeded
- mysql的gap锁导致Lock wait timeout exceeded try restarting transaction异常