MySQL丛库常用命令参数详解:show slave status\G

#################################################################################
主库的数据信息:
(如果丛库宕机,需要使用这个信息,设置主库时间点,从而启动丛库。如果不从这个时间点设置,启动丛库报错,因为数据会重复导入导致的。)
               Slave_IO_State: Waiting for master to send event
                  Master_Host: 10.10.118.25
                  Master_User: mysync
                  Master_Port: 3306
                Connect_Retry: 60
              Master_Log_File: mysql-bin.000023
          Read_Master_Log_Pos: 39913
relay日志的信息:
(可以看到读取主库binlog日志的位置,判断数据的差异的主要指标)         
         Relay_Log_File: mysql-relay-bin.000031
                Relay_Log_Pos: 40059
        Relay_Master_Log_File: mysql-bin.000023
丛库负责完成复制信息的两个主要进程信息:
(常用判断是否为YES,判断丛库是否宕机)
             Slave_IO_Running: Yes   
            Slave_SQL_Running: Yes   
主从同步过程,如果想设置一些差异或者异步的时间,会在这里显示:
(比如不同步特定的表,或丛库落后主库一天等需求)          
           Replicate_Do_DB: 
          Replicate_Ignore_DB: 
           Replicate_Do_Table: 
       Replicate_Ignore_Table: 
      Replicate_Wild_Do_Table: 
  Replicate_Wild_Ignore_Table: mysql.%,test.%,information_schema.%
                   Last_Errno: 0
                   Last_Error: 
                 Skip_Counter: 0
          Exec_Master_Log_Pos: 39913
              Relay_Log_Space: 40361
              Until_Condition: None
               Until_Log_File: 
                Until_Log_Pos: 0
           Master_SSL_Allowed: No
           Master_SSL_CA_File: 
           Master_SSL_CA_Path: 
              Master_SSL_Cert: 
            Master_SSL_Cipher: 
               Master_SSL_Key: 
丛库落后主库的预估时间,以及一些报错信息:(常用于判断故障信息)
        Seconds_Behind_Master: 0      
Master_SSL_Verify_Server_Cert: No
                Last_IO_Errno: 0
                Last_IO_Error: 
               Last_SQL_Errno: 0
               Last_SQL_Error: 
  Replicate_Ignore_Server_Ids: 
             Master_Server_Id: 18

#完####################################################################

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ChengRuoFei

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值