Home  >  Article  >  Database  >  mysql主从服务器配置特殊问题

mysql主从服务器配置特殊问题

WBOY
WBOYOriginal
2016-06-07 18:03:03993browse

如果修改了主服务器的配置,记得删除从服务器上的master.info文件。否则从服务器使用的还是老配置,可能会导致错误。

1.由于设置了slave的配置信息,mysql在数据库data目录下生成master.info,所以如有要修改相关slave的配置要先删除该文件,否则修改的配置不能生效。

提示:如果修改了主服务器的配置,记得删除从服务器上的master.info文件。否则从服务器使用的还是老配置,可能会导致错误。

2.停止数据库服务,并且删除当前的所有mysql日志(默认是mysql-bin.*)

3.把从服务器的同步日志删除(默认是mysql-relay-bin.*)
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn