I am using Heidi (MySQL client) to simulate the deadlock.
Scenario as below.
A table say student with column name and ID #. Auto commit set to false.
Process #A from client to modify the column data of name "Bob" to Tomcat. No commit from here
Process #B from client to modify same column data of name "Bob" to Super. Then dead locks happen
How to prevent this issue except commit on the #2 above or set auto commit to true?