Master Slave 主从同步错误
Slave_IO_Running:NO
Slave_SQL_Running:Yes
#在Slave库上查看状态
mysql> show slave status\G
Slave_IO_Running: No
Slave_SQL_Running: Yes
#重启master库:service mysqld restart
mysql> show master status;
±-----------------±---------±-------------±-----------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
±-----------------------±-------------±-------------±-----------------+
| mysql-bin.000534 | 14670663 | | |
±-----------------------±-------------±-------------±-----------------+
mysql> stop slave;
mysql> change master to Master_Log_File=‘mysql-bin.000001’,Master_Log_Pos=98;
mysql> start slave;
mysql> show slave status\G
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
本文详细介绍了如何解决MySQL主从复制中出现的Slave_IO_Running:No的问题,通过重启Master库、调整Master_Log_File及Master_Log_Pos参数,成功使Slave_IO_Running和Slave_SQL_Running状态恢复正常。

1万+

被折叠的 条评论
为什么被折叠?



