MariaDB Deadlocks in Small PHP Applications - Retry the Transaction, Not the Last Query
Two database transactions can each be valid on their own and still become unable to continue when they run together. One holds a lock the other needs; the second holds a lock the first needs. MariaDB then returns a message that sounds alarming: Deadlock found…
Read article