I am new to MySQL and after a long search I can configure ROW based replication based on slave. I thought it would be safe and I would not have to repeat it again and again.
But today, when I did SHOW SLAVE STATUS;on slave, I found the following
Failed to execute the Write_rows table mydatabasename.atable event; duplicate record "174465" for the key "PRIMARY", Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; events master log mysql-bin.000004, end_log_pos 60121977
Can someone tell me how this can happen when the owner does not have such an error, and the scheme on both servers is the same, whereas this could happen. And how to fix it, to do this work again and how to prevent such a thing in the future.
Please let me know what else I expect, besides this.
source
share