Fix upgrade path from 0.8.6

Ensure four replication related directives are present in the MySQL config before restarting.