I was notified that one of my slave MySQL DB’s stop replicating. An immediate investigation showed that because I dont slave the mysql.user table (is there a reason to do this?), SQL that required a certain user and privilege failed on the slave and broke replication.
Ouch.
To fix this I stopped the replication and took note of the master log position (Exec_Master_Log_Pos) and slave’s master log file (Relay_Log_File). Both are found with ‘show slave status’.
I then added the mysql user account with appropriate privileges reset the slave, manually pointed mysql to the master log position and then started to slave again.
A couple of seconds later the slave caught up with the master.
Users, databases, passwords and IP addresses have been changed to protect the innocent.









