【问题标题】:How often slave gets updated in master slave configuration?从属设备在主从配置中多久更新一次?
【发布时间】:2013-10-18 03:16:09
【问题描述】:

我们已经设置了主从配置,我需要知道从站什么时候更新或者从站多久更新一次。在哪里可以看到为复制而保存的设置。

【问题讨论】:

    标签: mysql replication database-replication master-slave


    【解决方案1】:

    手册包含此常见问题解答点下所需的信息:

    http://dev.mysql.com/doc/refman/5.0/en/faqs-replication.html#qandaitem-B-13-1-3

    查看下面输出的最后一行

    mysql> SHOW SLAVE STATUS\G
    *************************** 1. row ***************************
                 Slave_IO_State: Waiting for master to send event
                    Master_Host: localhost
                    Master_User: root
                    Master_Port: 3306
                  Connect_Retry: 3
                Master_Log_File: gbichot-bin.005
            Read_Master_Log_Pos: 79
                 Relay_Log_File: gbichot-relay-bin.005
                  Relay_Log_Pos: 548
          Relay_Master_Log_File: gbichot-bin.005
               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:
                     Last_Errno: 0
                     Last_Error:
                   Skip_Counter: 0
            Exec_Master_Log_Pos: 79
                Relay_Log_Space: 552
                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: 8
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-14
    • 2016-05-20
    • 2019-08-03
    • 2020-03-04
    相关资源
    最近更新 更多