mysqlSlaveReplicationFailure

Author: Yanjun Wang

  1. Step to Resolve Query Running Timeout Issue
show slave status\G
show processlist;
show engine innodb status\G
show open tables where In_Use > 0;

START to solve the issue

SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1; 
START SLAVE;

END to solve the issue

pt-table-sync -u<user have writer permission> --print --sync-to-master <slave db server IP> --tables <databse name>.<target table name> --ask-pass > file_to_store_query.sql
e.g. pt-table-sync -uwriter --print --sync-to-master 10.230.10.15 --tables snmp_manager.network_element --ask-pass > ne.sql