好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

mysql配置同步复制报错“The server is not configured as slav

在给2台mysql数据库配置主从同步,配置完成后,在slave上执行“start slave;”报错,提示:ERROR 1200 (HY000): The server is not configured as slave; fix in config file or with CHANGE MASTER TO

环境配置也都是正常的:

MYSQL MASTER:10.0.0.155

MYSQL SLAVE:10.0.0.156

File和Position值也是核对无误的

 

解决办法:配置没有问题,一般是自己漏了小的细节上,看命令是少了重启mysql服务,重启下数据库服务就可以正常了。

systemctl restart mariadb.service就可以正常了。

mysql配置同步复制报错“The server is not configured as slave”

标签:图片   没有   ima   src   mysql配置   img   conf   file   sla   

查看更多关于mysql配置同步复制报错“The server is not configured as slav的详细内容...

  阅读:29次