0

I getting the exception MySQLTransactionRollbackException (error 1213) when I try to do a select query.

The exception has the following message:

"Deadlock found when trying to get lock; try restarting transaction"

How can I restart transaction in Java?

1

1 Answer 1

0

Looks like you are using innoDB and you are having issues with row level locking.

look here: http://dev.mysql.com/doc/refman/5.1/de/innodb-lock-modes.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.