------------------------ LATEST DETECTED DEADLOCK ------------------------ 120606 15:50:38 *** (1) TRANSACTION: TRANSACTION 1D0AB, ACTIVE 0 sec fetching rows mysql tables in use 1, locked 1 LOCK WAIT 4 lock struct(s), heap size 320, 10 row lock(s), undo log entries 4 MySQL thread id 14, OS thread handle 0x340, query id 77916 192.168.253.220 root Updating update tt01 set status = 2 where name <'e' *** (1) WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 0 page no 309 n bits 80 index `PRIMARY` of table `tra_occ`.`tt01` trx id 1D0AB lock_mode X locks rec but not gap waiting Record lock, heap no 6 PHYSICAL RECORD: n_fields 5; compact format; info bits 32 0: len 4; hex 80000005; asc ;; 1: len 6; hex 00000001d0a9; asc ;; 2: len 7; hex 7b0000026917d3; asc { i ;; 3: len 1; hex 65; asc e;; 4: len 4; hex 80000005; asc ;; *** (2) TRANSACTION: TRANSACTION 1D0A9, ACTIVE 0 sec updating or deleting mysql tables in use 1, locked 1 3 lock struct(s), heap size 320, 2 row lock(s), undo log entries 1 MySQL thread id 19, OS thread handle 0x6c8, query id 77915 192.168.253.220 root updating delete from tt01 where id=5 and name = 'e' *** (2) HOLDS THE LOCK(S): RECORD LOCKS space id 0 page no 309 n bits 80 index `PRIMARY` of table `tra_occ`.`tt01` trx id 1D0A9 lock_mode X locks rec but not gap Record lock, heap no 6 PHYSICAL RECORD: n_fields 5; compact format; info bits 32 0: len 4; hex 80000005; asc ;; 1: len 6; hex 00000001d0a9; asc ;; 2: len 7; hex 7b0000026917d3; asc { i ;; 3: len 1; hex 65; asc e;; 4: len 4; hex 80000005; asc ;; *** (2) WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 0 page no 381 n bits 80 index `tt01_name` of table `tra_occ`.`tt01` trx id 1D0A9 lock_mode X locks rec but not gap waiting Record lock, heap no 6 PHYSICAL RECORD: n_fields 2; compact format; info bits 0 0: len 1; hex 65; asc e;; 1: len 4; hex 80000005; asc ;;