在从服务器上,SHOW PROCESSLIST的输出
请注意Time列的值可以显示从服务器比主服务器滞后多长时间
mysql> SHOW PROCESSLIST\G
*************************** 1. row *************************** Id: 10 User: system user Host: db: NULLCommand: Connect Time: 11 State: Waiting for master to send event Info: NULL*************************** 2. row *************************** Id: 11 User: system user Host: db: NULLCommand: Connect Time: 11 State: Has read all relay log; waiting for the slave I/O thread to update it Info: NULL
主服务器的Binlog Dump线程的State列的最常见的状态
· Sending binlog event to slave 这说明复制没有在运行—即,目前没有连接任何从服务器
· Finished reading one binlog; switching to next binlog 线程已经读完二进制日志文件并且正打开下一个要发送到从服务器的日志文件
· Has sent all binlog to slave; waiting for binlog to be updated
线程已经从二进制日志读取所有主要的更新并已经发送到了从服务器。线程现在正空闲,等待由主服务器上新的更新导致的出现在二进制日志中的新事件
· Waiting to finalize termination 线程停止时发生的一个很简单的状态。
-------------------------