Mysql – Replicate update statement as Insert in Mysql 5.6

MySQLmysql-5.6replication

I want to replicate all update statement from Master as a Insert at Slave end.

Is it possible like in SQL Server? If so, how?

I want to do it because, if any record on Master is updating and if same record is not present at Slave end, then instead of Replication tends to fail, it should insert that record at Slave end.

All insert on Master will act as Insert only at Slave end.

Best Answer

How about using INSERT ... ON DUPLICATE KEY UPDATE or REPLACE INTO on master itself?