MySQLbug: server-id is automatically set to 1 by default

Source: Internet
Author: User

When my colleague called the master node yesterday, the slave database reported the following error:

Got fatal error 1236 from master when reading data from binary log: 'misconfigured master-server id was not set'
Slave database collection: root @ localhost Fri May 23 14:18:59 2014 14:18:59 [(none)]> show variables like '% server_id % '; + --------------- + ------- + | Variable_name | Value | + --------------- + ------- + | server_id | 2 | + --------------- + ------- + master database collection: mysql> show variables like '% server % '; + servers + ----------------- + | Variable_name | Value | + servers + ------------------- + | character_set_server | latin1 | collation_server | latin1_swedish_ci | server_id | 1 | + servers +

Because the business is used to store hadoop metadata, MySQL version was earlier, and my colleagues used slave higher than the master version, this was the reason, but on the MySQL bug list, we found:

This discovery denies our previous judgment. After testing by a colleague, it is indeed the bug :-)

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.