Transaction isolation level and transaction processing of InnoDB Storage engine in MySQL

Source: Internet
Author: User

The transaction isolation level of the InnoDB Storage engine in MySQL is different from that in transaction processing. 1. The set transaction command cannot be used to change the isolation level. However, you can use set {global | session} transaction to change the isolation level. In this document, set transaction can change the isolation level of the next transaction in the current session. It cannot be used in actual tests. 2. Use set [{global | session}] tx_isolation = {READ-COMMITTED | REPEATABLE-READ} to change the transaction isolation level. 3. read committed isolation level. Binary logs must be in row format, or binary logs are not enabled. 4. When autocommit is OFF, a new transaction is started immediately after the previous transaction ends (rollback or commit. Snapshot point of the transaction, which is the time point at which the first SQL statement (SELECT, DML) in the transaction is executed. 5. When autocommit is ON, a new transaction is started immediately after each SQL statement (SELECT, DML) ends. Snapshot point of the transaction, which is the time point at which the (unique) SQL statement (SELECT, DML) in the transaction is executed. 6. start the transaction statement to start a new transaction immediately. Snapshot point of the transaction, which is the time point at which the first SQL statement (SELECT, DML) in the transaction is executed. 7. After the start transaction statement, a transaction is terminated without executing commit or rollback. If you execute the start transaction statement again, the transaction before the start transaction is implicitly committed, and then a new transaction is started.

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.