MySQL supports local transactions (within a given client session)
through statements such as
Section 13.3.1, “START TRANSACTION, COMMIT, and ROLLBACK Syntax”. XA transaction support enables MySQL to
participate in distributed transactions as well. See
Section 13.3.7, “XA Transactions”.