!--NEWSZW_HZH_BEGIN--
在 MySQL 主从复制时,有时候会碰到这样的故障:在 Slave 上 Slave_IO_Running 和 Slave_SQL_Running 都是 Yes,Slave_SQL_Running_State 显示 Slave has read all relay log; waiting for the slave I/O thread to update it ,看起来状况都正常,但实际却滞后于主,Master_Log_File 和 Read_Master_Log_Pos 也不是实际主上最新的地位。一种多是 Master 上的 binlog dump 线程挂了。但有时候,在 Master 上检讨也是完整正常的。那 Slave 的耽搁又是怎样酿成的呢?在 MySQL 主从复制时,有时候会碰到这样的故障:在