MySQL replication – # Warning: this binlog is either in use or was not closed properly.

Well, there are things you definitely don’t want to do when you set up replication (even for the tests) :)

One of these things is to set up replication log’s directory to be a “/tmp”. In that case you may encounter that “/tmp” had been scheduled for periodical cleaning after you found your logs missing :)