I have a MySQL master/slave configuration (MariaDB 10.0.17). Sometimes, the slave or the master server crashes. After the crash and restart, I get some errors of duplicated keys
on slave. The server get stuck into these errors and I need to take action by deleting the duplicated key entries so it goes on.
How to avoid this or, if not possible, do this "slave recover" automatically?