码迷,mamicode.com
首页 > 其他好文 > 详细

主从复制时报:ERROR 1794 (HY000): Slave is not configured or failed to initialize properly. You must at least set --server-id to enable either a master or a slave. Additional error messages can be found in t

时间:2018-09-19 23:33:13      阅读:366      评论:0      收藏:0      [点我收藏+]

标签:mysql   figure   tab   worker   messages   rop   脚本   inf   mes   

centos 6.5

mysql5.7

在从库作stop slave时报:

error:
ERROR 1794 (HY000): Slave is not configured or failed to initialize properly. You must at least set --server-id to enable either a master or a slave. Additional error messages can be found in the MySQL error log.

经分析,需要:

删除5张表,并重新导入脚本
use mysql
drop table slave_master_info;
drop table slave_relay_log_info;
drop table slave_worker_info;
drop table innodb_index_stats;
drop table innodb_table_stats;

(2)重新启动数据库

注:这一步是必须的,否则无法正常配置双主架构。

主从复制时报:ERROR 1794 (HY000): Slave is not configured or failed to initialize properly. You must at least set --server-id to enable either a master or a slave. Additional error messages can be found in t

标签:mysql   figure   tab   worker   messages   rop   脚本   inf   mes   

原文地址:https://www.cnblogs.com/weifeng1463/p/9678155.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!