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.