在window环境下配置MySQL5.7主从复制同步遇到错误及解决方法
在MySQL5.7环境下 主从复制模式,从服务器重启后发现备份停止
手动输入
mysql> start slave;
结果为:
Query OK, 0 rows affected (0.00 sec)
然而输入
mysql>SHOW SLAVE STATUS\G
出现一些错误:Slave_SQL_Running: No
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 192.168.8.201
Master_User: xiaokai
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000003
Read_Master_Log_Pos: 5383
Relay_Log_File: xiaokai-PC-relay-bin.000002
Relay_Log_Pos: 1028
Relay_Master_Log_File: mysql-bin.000003
Slave_IO_Running: Yes
Slave_SQL_Running: No
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Tabl