Case of Ha:gtid_mode configuration inconsistency in MySQL

Source: Internet
Author: User
Tags mysql new features

1.1.1. Ha:gtid_mode Configuration Inconsistency

"Environment description"

msyql5.6.14

"Error Message"

The initial state master and slave both opened the enforce-gtid-consistency and Gtid-mode, and then changed both of them to off on master, at which point the slave error occurred:

last_io_error:the slave IO thread stopsbecause the master has @ @GLOBAL. Gtid_mode off and this server has@ @GLOBAL. Gtid_mode on

"Cause of the error"

MySQL's master and slave must both turn on or off the enforce-gtid-consistency and Gtid-mode functions, that is, to be consistent.

"Workaround"

Turn off the enforce-gtid-consistency and Gtid-mode features on the slave.

This column more highlights: http://www.bianceng.cn/database/MySQL/

Resources

Gtid-mode is used to set whether to turn on the Gtid function, if you want to turn on the Gtid function, you need to open both the Log-bin and Log_slave_updates functions, and also need to turn on the Enforce_gtid_consistency function. The Gtid_mode parameter can be set to ON, off, upgrade_step_1, upgrade_step_2 four values, where upgrade_step_1 and upgrade_step_2 are reserved for future MySQL possible new features, Doesn't make any sense to the current MYQL. At the same time, MySQL recommends turning off the Gtid_mode feature and the Enforce_gtid_consistency feature when Mysql_upgrade, because MySQL may operate a non-transactional MyISAM storage engine table during upgrade. can cause an error.

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.