Posted on April 25, 2008 by Alex
The slave failed with the error that the relay binlog is corrupt. It had copied close to 12 binlogs from the master and they were yet to be applied. Unfortunately those binlogs have been purged on the master. Now to sync up cleanly we might have to refresh data from the master which can be [...]
Filed under: mysql | Tagged: corruption, mysql, relay log, replication, slave | Leave a Comment »
Posted on April 4, 2008 by Alex
The following one liner helps to sync a slave that is facing duplicate entry errors.
while [ 1 ]; do if [ `mysql -u root -e "show slave status \G;" | grep "Duplicate entry" | wc -l` -eq 1 ] ; then mysql -u root -e “stop slave; set global sql_slave_skip_counter=1; start slave;”; fi; sleep [...]
Filed under: mysql | Tagged: bash, corruption, mysql, relay log, replication, sync | 1 Comment »