---
title: "MySqL com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadloc"
author: "mutourenoo"
date: "2018-08-28T14:20:11Z"
tags: []
categories: ["编程语言"]
slug: "mysql-com-mysql-jdbc-exceptions-jdbc4-mysqltransactionrollbackexception-deadloc"
draft: false
lastmod: "2018-08-28T15:10:20Z"
id: 2429555
url: "https://mutourenoo.iteye.com/blog/2429555"
---

```java

### Error updating database.  Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction
### The error may involve 

```


解决办法：

参考文档：http://blog.sina.com.cn/s/blog_4acbd39c01014gsq.html
https://blog.csdn.net/aesop_wubo/article/details/8286215