If you have a master/slave replication setup that comes across something similar to error 1236
where the binlogs get out of sync, you can run the following commands to get things back on track.
# On the master node
SHOW MASTER STATUS;
# On the slave node
STOP SLAVE;