How to solve MySQL 5.7 replication: Error ‘Duplicate entry ‘31222217’ for key ‘PRIMARY” on query.
Replication: Error duplicate entry for key PRIMARY on query. Default database: ‘mydb’. Query: ‘INSERT INTO tb_order … Sometimes your replication will get error because of network problem, storage full or RAM full. One of the errors is: Duplicate entry for… Continue Reading