And just as I was saying I rarely get to fiddle with databases at work, this morning I resolved an issue with replication.
One of our database machines got rebooted yesterday without properly shutting down replication. The slave server had no idea this was happening. After looking around a bit it seems clear that MySQL on the master has moved to recording changes in a new log file, but the slave is still attempting to read from the old.
Which results in something like:
Slave_IO_Running: No
Slave_SQL_Running: Yes
After verifying the log positions in master and slave binary log files to confirm exactly where things stopped, I shut down the slave processes altogether and issue a command to point the slave to the new log file and reset the log position:
mysql> …