An application connects to a database through sessions, often managed by a connection pool. This chapter explains why a transaction must stay on one connection, how to commit or undo work, and how InnoDB uses versions, logs, and locks to support transactions.
Connections and Transactions
Keep session state together and commit related changes safely