博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mysql主库线程_MySQL 主从扩展--主库的线程状态
阅读量:1523 次
发布时间:2019-04-21

本文共 721 字,大约阅读时间需要 2 分钟。

copycode.gif[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

copycode.gif

线程状态包括:

(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/

你可能感兴趣的文章
阿里云《云原生》公开课笔记 第九章 应用存储和持久化数据卷:核心知识
查看>>
linux系统 阿里云源
查看>>
国内外helm源记录
查看>>
牛客网题目1:最大数
查看>>
散落人间知识点记录one
查看>>
Leetcode C++ 随手刷 547.朋友圈
查看>>
手抄笔记:深入理解linux内核-1
查看>>
内存堆与栈
查看>>
Leetcode C++《每日一题》20200621 124.二叉树的最大路径和
查看>>
Leetcode C++《每日一题》20200622 面试题 16.18. 模式匹配
查看>>
Leetcode C++《每日一题》20200625 139. 单词拆分
查看>>
Leetcode C++《每日一题》20200626 338. 比特位计数
查看>>
Leetcode C++ 《拓扑排序-1》20200626 207.课程表
查看>>
Go语言学习Part1:包、变量和函数
查看>>
Go语言学习Part2:流程控制语句:for、if、else、switch 和 defer
查看>>
Go语言学习Part3:struct、slice和映射
查看>>
Go语言学习Part4-1:方法和接口
查看>>
Leetcode Go 《精选TOP面试题》20200628 69.x的平方根
查看>>
leetcode 130. Surrounded Regions
查看>>
【Python】详解Python多线程Selenium跨浏览器测试
查看>>