码迷,mamicode.com
首页 > 数据库 > 详细

从show slave status 中判断mysql同步状态

时间:2016-12-17 13:58:35      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:lin   relay   io线程   show   线程   状态   run   mysql   1.5   

 

 

slave status 中检查同步状态:

 

  1、sql线程和io线程显示yes

    Slave_IO_Running: Yes
    Slave_SQL_Running: Yes  

  2、

    Master_Log_File 和  Relay_Master_Log_File 相等

  3、

    Read_Master_Log_Pos 和 Exec_Master_Log_Pos 相等

  4、

    Slave_SQL_Running_State: 的状态为:

    Slave_SQL_Running_State: Slave has read all relay log; waiting for the slave I/O thread to update it

            

 

从show slave status 中判断mysql同步状态

标签:lin   relay   io线程   show   线程   状态   run   mysql   1.5   

原文地址:http://www.cnblogs.com/fanxuanhui/p/6189410.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!