Replication of the primary and mysql

Inconsistencies in the master and slave my.cnf confirmation of server_id

the Lord:

show master status;

+------------------+----------+--------------+------------------+-----------------------------------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set |
+------------------+----------+--------------+------------------+-----------------------------------------------+
| mysql-bin.000048 | 104783 | | | 9a9bcbe6-d459-11e9-82f8-068c8400044e:1-184780 |
+------------------+----------+--------------+------------------+-----------------------------------------------+

From:

stop slave;reset slave;
change master to master_host='192.168.1.20', master_port=3307, master_user='mysql_user', master_password='123456', master_log_file='mysql-bin.000048', master_log_pos=104783;
start slave; 
show slave status\G

Note: You need master_log_file and master_log_pos needs and queries to the data in the main agreement

 

Guess you like

Origin www.cnblogs.com/Nora-F/p/11529898.html