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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR 1794 (HY000): Slave is not configured or fai相关的知识,希望对你有一定的参考价值。

mysql 5.7在从库停止复制进程时出现错误,原因是将复制信息记录表中了。


错误提示:

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.


解决方法:

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;

source /usr/coolpad/mysql/share/mysql_system_tables.sql

重新启动数据库

以上是关于ERROR 1794 (HY000): Slave is not configured or fai的主要内容,如果未能解决你的问题,请参考以下文章

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

MySQL 跨版本主从复制时报错:ERROR 1794 (HY000): Slave is not configured or failed to initialize properly.

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

处理一则MySQL Slave环境出现ERROR 1201 (HY000): Could not initialize master info structure的案例。

ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository

故障处理ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository(示例(代