MySQL Bug:server-id is automatically set to 1 by default

Source: Internet
Author: User

Yesterday, colleagues in the boss from the time, from the library reported the following error:

Got fatal error 1236 from master when reading data from binary log: ' misconfigured master-server ID is not set '

Rough looks like the master Server-id is not set, but colleagues do the following query:

Repository acquisition: [email protected] Fri may 14:18:59 14:18:59 [(none)]> show variables like '%server_id% '; +---------------+- ------+| variable_name | Value |+---------------+-------+| server_id     | 2     | +---------------+-------+ Main Library capture:mysql> show variables like '%server% '; +-------------------- --+-------------------+| Variable_name        | Value             |+----------------------+-------------------+| character_set_server | latin1            | | collation_server     | latin1_swedish_ci | | server_id            | 1                 |+----------------------+-------------------+

At this point, the Server-id of the replication environment is truly globally unique. Why the error?

Since the business is the metadata used to store Hadoop, the previous MySQL version was lower, and colleagues used a higher slave than the master version, which was thought to be the reason, but found on the MySQL bug list:

The findings negate our previous judgments, tested by colleagues, and indeed the bug:-)


Have a good weekend,

Good luck!


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.