2015.07.17<br />
<br />
今天用脚本做主从切换实验的时候,看到从机上有报错:
<h3 style="line-height:35px;white-space:
normal;margin:0px 0px 10px;padding:0px;font-size:20px;font-family:tahoma, helvetica, 'microsoft yahei', arial;color:#3A3A3A;font-weight:
normal;background-color:#FFFFFF;">
Could not find f
irst log file name in binary log index file<span style="font-family:'sans serif', tahoma, verdana, helvetica;font-size:12px;line-height:1.5;"></span>
</h3>
当时主从的
链接是正常的,<br />
Slave_IO_Running: Yes<br />
Slave_
sql_Running: Yes<br />
<span style="white-space:
normal;">但是主机的日志传过来,从机不能应用。重新<br />
stop slave;<br />
reset slave;<br />
change master to <br />
还是不行。但是网络是好的,又重新change 都行不通啊。然后突然想到昨天再做切换的时候,失败多,导致主机上面的数据没有过来。<br />
发现问题了,就知道怎么做了<br />
重新
mysqldump 备份,然后再从机上面恢复,<br />
再change master to 就ok了! <br />
正常情况下,重新change to 就可以了,只是我的,呃呃呃。。。。</span><br />
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。