1. Slave上的操作
mysql> show slave status\G
*************************** 1. row ***************************
Slave_IO_State:
Master_Host: 192.168.56.100
Master_User: repliform
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysqld-bin.000001
Read_Master_Log_Pos: 1458
Relay_Log_File: localhost-relay-bin.000003
Relay_Log_Pos: 4
Relay_Master_Log_File: mysqld-bin.000001
Slave_IO_Running: No
Slave_SQL_Running: Yes
mysql> stop slave;
Query OK, 0 rows affected (0.01 sec)
清除复制设置
mysql> reset slave all;
Query OK, 0 rows affected (0.07 sec)
mysql> show slave status\G
Empty set (0.00 sec)
删除复制用户
mysql> drop user repliform@'%';
mysql> flush privileges;
2. Master上的操作
删除复制用户
mysql> drop user repliform@'%';
mysql> flush privileges;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26506993/viewspace-2142859/
,如需转载,请注明出处,否则将追究法律责任。