在MySQL的主从配置中,在slave上执行show slave status可以看到slave的状态,
Exec_Master_Log_Pos: The position of the last event executed by the SQL thread from the master's binary log (Relay_Master_Log_File).
(Relay_Master_Log_File, Exec_Master_Log_Pos) in the master's binary log corresponds to (Relay_Log_File, Relay_Log_Pos) in the relay log.
(Relay_Master_Log_File, Exec_Master_Log_Pos)和(Relay_Log_File, Relay_Log_Pos)是对应的,它们表示的是Slave中的SQL进程中正在执行的语句的位置,表明的是Slave和Master之间的同步状 态。
当Slave中
Relay_Master_Log_File和
Master_Log_File相同且
Read_Master_Log_Pos和 Exec_Master_Log_Pos完全相同时,表明Slave和Master处于完全同步的状态。
评论