Issues to be aware of when opening Gtid database

Source: Internet
Author: User

1. Slave cannot execute any SQL, including Super user
2, Read_only=on, this must be opened to avoid business execution SQL
3. Ensure that the transaction ID of the current slave is 1

When a problem occurs in the slave sync, manually skip the issue that needs to be considered
The SQL that executes does not record the transaction ID, otherwise slave switches to master, which causes the synchronization to fail because Binglog has already been removed.
SET @ @SESSION. sql_log_bin= 0;
This step executes the specific SQL

To view the UUID of the current data
Show GLOBAL VARIABLES like ' server_uuid ';

View the executed transactions for the current database
Show master status;

Set Transaction ID manually

SET @ @SESSION. sql_log_bin= 0;
SET @ @GLOBAL. Gtid_purged= ' 132028ab-abc5-11e6-b2f0-000c29a60c3d:1-45679 ';

Issues to be aware of when opening Gtid database

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: 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.