How to See Every Statement MySQL Receives with the General Query Log
Your application's logs say what it meant to send. MySQL's general query log says what arrived, including what the driver adds by itself, such as BEGIN, SET and savepoints. It's the tool I reach for when something about a transaction makes no sense. Use it for a moment, and turn it off again.
