MySQL last_sql_errno: 1062 —- classic error, primary key conflict

1、 Basic information 1. Centos7.4 2.MySQL 5.7.21 3. Gtid based replication 2、 Exception description The slave node is mistakenly used as the master node to insert a piece of data. The same data has been inserted once in both the master and slave nodes, resulting in primary key conflict and SQL thread exception under slave. … Continue reading MySQL last_sql_errno: 1062 —- classic error, primary key conflict