MySQL appears could not initialize master info structure fix

Source: Internet
Author: User
Tags reset

MySQL sets the sync Replication and splits the following command into two sets of inputs, such as the following:

1.mysql> change MASTER to master_host= ' master.example.com ', master_user= ' repl ', master_password= ' Repl_password ';
2.mysql> change MASTER to master_log_file= ' mysql-bin.000001 ', master_log_pos=107;
Set Replication complete, start slave not? ⒍? The following error message appears:

Could not initialize master info structure, more error messages can is found in the MySQL error log

How do we solve it?


MySQL Replication appears could not initialize master info structure repair
MySQL error log does not see any error message can be read in this article discussion: MySQL:: Could not initialize master info structure, more error messages can be found In the MySQL error log

The following direct writing solution:

The code is as follows Copy Code
1.mysql> Reset Slave; # that's the point.
2.mysql> change MASTER to master_log_file= ' mysql-bin.000001 ', master_log_pos=107; # Please follow your own setting
3.mysql> start slave; # It's normal.

4.?: Reset Slave, Master_log_file and Master_log_pos will be emptied, so need to be reset.

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.