摘要:
mysql的主从复制, 当从库执行binlog出错后, 会中止主从复制.
此时需要重置主从连接, 以重建主从关系.
主库操作:
一. 清理同步的数据库
drop database test;
二. 重置主库状态
reset master;
reset slave all;
三. 检测主库状态
show master status;
mysql> show master status;
+------------------+----------+--------------+------------------+-------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set |
+------------------+----------+--------------+------------------&#