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;
CHANGE MASTER TO
MASTER_LOG_FILE='mysql-bin.123456',
MASTER_LOG_POS=123456789;
START SLAVE;