Transaction isolation mechanism in MySQL

Source: Internet
Author: User

0. Read uncommitted (read uncommitted transaction data-dirty read)

1. Read committed (Only the transaction data can be read and committed-the transaction data cannot be read repeatedly)

2. Repeatable read (New data can be read only when both transactions are committed-Phantom read)

3. serializable (Only one transaction can operate on data, whether read/write or other transactions wait)

Set session | global transaction isolation level

Read uncommitted
| Read committed

Repeateable read
| Serializable


Select @ tx_isolation view current isolation level (Session)

Select @ Global. tx_isolation
View global isolation levels

Http://xm-king.iteye.com/blog/770721

Http://orzdba.wordpress.com/2011/03/03/transaction_isolation_levels/

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.