I did a master/master replication with MySQL on a Gentoo OVH Release 2, all work fine in my test phase. I put it in production, the replication works fine for 1 or 2 days, but this morning, I don't know why, my slave stops running!
So now the log position is bad. I can't just restart slave and my replication doesn't work.
I want a master/master replication to make a backup server with an IP failover, so only one server is writing/reading in the database at same time.
When I go to MySQL and click on
Show slave status, I see an error like:
Error 'Duplicate entry '411465' for key 1' on query. Default database .... etc.
Did this error stop my replication? If yes, why do I get this error? The second server does nothing on the database, so normally, there is no problem with the autoincrement, right?