1.I have a script, that executes some update/delete operations
2.All sql operations are executed inside transaction(InnoDb tables)
3.From time to time I get "Deadlock found when trying to get lock; try restarting transaction"
There are some other jobs in this application, that perform database operations. My problem is to find which concurrent queries from other scripts interfere my script. What is the easiest way to find them?