The context information saved in the MySQL binary log

Source: Internet
Author: User
Tags rand

1. The reason for the context to be saved in the binary log

The binary log is to be replayed on the slave side, and the context information is recorded to ensure the consistency of the master bundle database. such as Rand a random number, the Lord returned can be 100, the return from the top may be 1000.

For the consistency of the data MySQL will have to save the value of the return, to the slave side of the direct use.

2. The context information to be saved in the binary log.

01, the current database.

02. The seed of the RAND function.

03, the current time.

04. The value inserted by the Auto_increment column

05, last_insert_id.

06. Thread ID

The context information saved in the MySQL binary log

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.