有时候我们的有许多台Slave库,根据业务需要一台甚至几台不在使用需要下线了.这时候就不在需要从Master同步数据了.那么我们如何清理Slave呢?下面的例子给你答案
下面是一台跟主库同步的Slave将要下线
mysql> show slave status\G
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 192.168.11.22
Master_User: repl
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000062
Read_Master_Log_Pos: 120
Relay_Log_File: relay-bin.000020
Relay_Log_Pos: 3208
Relay_Master_Log_File: mysql-bin.000015
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB: test01
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: 3045