slave的启动和关闭

mysql> stop slave;
Query OK, 0 rows affected (0.05 sec)

mysql>  show slave statusG;
*************************** 1. row ***************************
               Slave_IO_State: 
                  Master_Host: 192.168.32.6
                  Master_User: backup
                  Master_Port: 3306
                Connect_Retry: 60
              Master_Log_File: mysql-bin.000009
          Read_Master_Log_Pos: 77963436
               Relay_Log_File: mysqld-relay-bin.000007
                Relay_Log_Pos: 19436593
        Relay_Master_Log_File: mysql-bin.000009
             Slave_IO_Running: No
            Slave_SQL_Running: No


此时slave 被关闭:

mysql> start slave;
Query OK, 0 rows affected (0.00 sec)


mysql> show slave statusG
*************************** 1. row ***************************
               Slave_IO_State: Waiting for master to send event
                  Master_Host: 192.168.32.6
                  Master_User: backup
                  Master_Port: 3306
                Connect_Retry: 60
              Master_Log_File: mysql-bin.000009
          Read_Master_Log_Pos: 77977643
               Relay_Log_File: mysqld-relay-bin.000008
                Relay_Log_Pos: 14490
        Relay_Master_Log_File: mysql-bin.000009
             Slave_IO_Running: Yes
            Slave_SQL_Running: Yes

原文地址:https://www.cnblogs.com/hzcya1995/p/13351626.html