MySQL Distributed transaction

Source: Internet
Author: User

For a description of MySQL distributed transactions, refer to: http://blog.csdn.net/luckyjiuyi/article/details/46955337

It is divided into two phases: the preparation and execution phases. There are two roles: the manager of the transaction (TM) and the transaction performer (Rm,mysql Server).

XA start transaction starts the identity so that the transaction is in the active state

XA End Transaction End identity, leaving the transaction in an idle state

An XA PREPARE notification prepares the identity when the transaction is in an idle state, in the prepared state

For the prepared state, an XA commit commits the transaction

For the prepared state, the XA ROLLBACK rolls back the transaction

XA RECOVER See which transactions are in the Ready (PREPARED) state.

Also refer to: Http://www.tuicool.com/articles/B3UZri2

MySQL Distributed transaction

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.