设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 创业者 手机 数据
当前位置: 首页 > 服务器 > 系统 > 正文

windows下mysql单向主从同步配置(2)

发布时间:2021-03-05 20:56 所属栏目:52 来源:网络整理
导读:查看表 mysql show tables;+----------------+| Tables_in_scrb |+----------------+| user |+----------------+1 row in set (0.00 sec) 可以看见,已经成了。 ? 到此windows下的单向主从同步配置已经完成了。 如

查看表

mysql> show tables;
+----------------+
| Tables_in_scrb |
+----------------+
| user           |
+----------------+
1 row in set (0.00 sec)

可以看见,已经成了。

?

到此windows下的单向主从同步配置已经完成了。

如果想关掉主从同步,只需要在从服务端执行一下命令即可

mysql> show slave status\G;
*************************** 1. row ***************************
               Slave_IO_State:
                  Master_Host: 192.168.1.199
                  Master_User: mysync
                  Master_Port: 3306
                Connect_Retry: 60
              Master_Log_File: mysql-bin.000001
          Read_Master_Log_Pos: 1278
               Relay_Log_File: PC05-relay.000003
                Relay_Log_Pos: 663
        Relay_Master_Log_File: mysql-bin.000001
             Slave_IO_Running: No //已经关闭同步复制功能
            Slave_SQL_Running: No
              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: 1278
              Relay_Log_Space: 1527
              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: NULL
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: 199
                  Master_UUID: 516cb325-a148-11e9-b3df-02004c4f4f50
             Master_Info_File: C:\ProgramData\MySQL\MySQL Server 5.7\Data\master.info
                    SQL_Delay: 0
          SQL_Remaining_Delay: NULL
      Slave_SQL_Running_State:
           Master_Retry_Count: 86400
                  Master_Bind:
      Last_IO_Error_Timestamp:
     Last_SQL_Error_Timestamp:
               Master_SSL_Crl:
           Master_SSL_Crlpath:
           Retrieved_Gtid_Set:
            Executed_Gtid_Set:
                Auto_Position: 0
         Replicate_Rewrite_DB:
                 Channel_Name:
           Master_TLS_Version:
1 row in set (0.00 sec)

  

?可以对比上边的开始状态,可知已经关闭了。

(编辑:ASP站长网)

网友评论
推荐文章
    热点阅读