mysql复制如何查看是gtid复制还是pos复制

 

复制代码
mysql> show slave status \G;
*************************** 1. row ***************************
               Slave_IO_State: Waiting for master to send event
                  Master_Host: 192.168.1.197
                  Master_User: repl
                  Master_Port: 3306
                Connect_Retry: 60
              Master_Log_File: binlog.000819
          Read_Master_Log_Pos: 2578432
               Relay_Log_File: relaylog-binlog.023909
                Relay_Log_Pos: 2578639
        Relay_Master_Log_File: binlog.000819
             Slave_IO_Running: Yes
            Slave_SQL_Running: Yes
              Replicate_Do_DB: 
          Replicate_Ignore_DB: information_schema,performance_schema,sys
           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: 2578432
              Relay_Log_Space: 2578930
              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: 1
                  Master_UUID: 52cf753d-78ad-11ea-8c41-d0946652eba0
             Master_Info_File: /opt/mysql57_slave/data/master.info
                    SQL_Delay: 0
          SQL_Remaining_Delay: NULL
      Slave_SQL_Running_State: Slave has read all relay log; waiting for more updates
           Master_Retry_Count: 86400
                  Master_Bind: 
      Last_IO_Error_Timestamp: 
     Last_SQL_Error_Timestamp: 
               Master_SSL_Crl: 
           Master_SSL_Crlpath: 
           Retrieved_Gtid_Set: 52cf753d-78ad-11ea-8c41-d0946652eba0:81347323-96914122
            Executed_Gtid_Set: 3a352f77-9906-11eb-9666-d0946652eba0:1,
4c11b0bb-990f-11eb-a3d5-d0946652eba0:1-2,
52cf753d-78ad-11ea-8c41-d0946652eba0:1-81341090:81347323-96914122
                Auto_Position: 0
         Replicate_Rewrite_DB: 
                 Channel_Name: 
           Master_TLS_Version: 
1 row in set (0.00 sec)

ERROR: 
No query specified
复制代码

 

Auto_Position: 0 -- pos复制
Auto_Position: 1 -- gtid复制

 

posted @   slnngk  阅读(118)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
历史上的今天:
2020-02-23 goldengate(oracle_to_mysql)部署
2020-02-23 goldengate(o2o)部署for_12C(cdb)_to_11G
点击右上角即可分享
微信分享提示