首页 > 技术文章 > SHOW SLAVE STATUS几个常见参数

polestar 2016-08-25 17:09 原文


--显示当前读取的Master节点二进制日志文件和文件位置,对应线程I/O thread Master_Log_File: mysql-bin.000011 Read_Master_Log_Pos: 120 --显示当前Slave节点正在处理的中继日志文件和位置,对应线程 SQL thread Relay_Log_File: relay-bin.000002 Relay_Log_Pos: 283 --显示当前Slave节点应用的日志 在master节点中对应的位置。
--官方文档:The coordinates given by (Relay_Master_Log_File, Exec_Master_Log_Pos) in the master's binary log correspond to the coordinates given by (Relay_Log_File, Relay_Log_Pos) in the relay log
 Relay_Master_Log_File: mysql-bin.000011
Exec_Master_Log_Pos: 120
  
 从字面意思看, (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处于完全同步的状态

 

推荐阅读