An In-Depth Explanation of MySQL Transaction Implementation and Principles.
In the process of using databases, transactions are a familiar concept.
A transaction’s primary goal is to ensure that a set of database operations either all succeed or all fail.
In MySQL, transaction support is implemented at the storage engine level.