本文共 721 字,大约阅读时间需要 2 分钟。
[root@localhost ~]# mysql -uroot -ppzk123 -S /data/3306/mysql.sock -e "show processlist\G;" # 查看主库的线程状态*************************** 2. row ***************************
Id: 7
User: rep
Host: 192.168.5.131:36438
db: NULL
Command: Binlog Dump
Time: 266
State: Master has sent all binlog to slave; waiting for binlog to be updated
Info: NULL
线程状态包括:
(1) Waiting to finalize termination :线程停止时发生的一个很简单的状态
(2) Send binlog event to slave :线程已经从二进制 binlog 日志读取了一个事件并且正将它发送到从服务器(3) Finished reading one binlog; switching to next binlog :线程已经读完二进制 binlog 日志文件,并且正打开下一个要发送到从服务器的 binlog 日志文件(4) Master has sent all binlog to slave; waiting for binlog to be updated :表示线程已经从 binlog 日志读取所有更新,并已经发送到了从数据库服务器,线程目前为空闲状态,等待由主服务器上二进制日志中的新时间更新
转载地址:http://bsiby.baihongyu.com/