主从复制时报:ERROR 1794 (HY000): Slave is not configured or failed to initialize properly. You must at lea

Posted weifeng1463

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了主从复制时报:ERROR 1794 (HY000): Slave is not configured or failed to initialize properly. You must at lea相关的知识,希望对你有一定的参考价值。

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 lea的主要内容,如果未能解决你的问题,请参考以下文章

ERROR 1794 (HY000): Slave is not configured or fai

MySQL复制ERROR 1794 (HY000): Slave is not configured or failed to initialize properly.

MySQL5.6 主从复制 ERROR 1776 (HY000): Parameters MASTER_LOG_FILE

mycat在配置主从复制后登录后执行create创建命令报错“ERROR 1495 (HY000): User readonly“

mysql客户连接时报ERROR 2002 (HY000)

MySQL报错ERROR1872(HY000):Slave failed to initialize