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

重新启动数据库

原文地址:http://blog.51cto.com/tongcheng/2157310

时间: 2024-11-05 23:30:37

ERROR 1794 (HY000): Slave is not configured or fai的相关文章

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

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. error log中有类似日志:2016-05-10 17:21:25 1

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

今天在使用冷备份文件重做从库时遇到一个报错,值得研究一下. 版本:MySQL5.6.27 一.报错现象 dba:(none)> start slave; ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository 这个时候查看error.log: 2017-07-17 16:19:02 9022 [ERROR] Failed to open the relay log '.

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

该问题的一般是由relay log没有在配置文件定义所致. 1.问题描述: mysql> start slave; mysql> system perror 1872 MySQL error code 1872 (ER_SLAVE_RLI_INIT_REPOSITORY): Slave failed to initialize relay log info structure from the repository 2.处理办法2.1.修改配置文件 诸如在my.cnf配置文件中添加如下项: r

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

mysql> start slave; ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository 处理一则MySQL Slave环境出现ERROR 1201 (HY000): Could not initialize master info structure的案例. 冷备份方式复制一份新的slave,初始化参数中已经修改了相关文件路径及server_id等关联参数. 但

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

ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository MySQL 5.6修复从库复制时报错 mysql> start slave; ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository 报错原因: 从库已经存在之前的relay log 解决

MySQL错误:ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES

MySQL错误:ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES在执行MySQL复制的前奏时:为主服务器创建用户以便从服务器连接,出现该错误:GRANT REPLICATION SLAVE ON a_database.* to 'repl'@'domain.test' IDENTIFIED BY 'slavepass';之所以指定数据库我是希望能只复制这个数据库而忽略其他(已创建的或今后会创建的)数据库.因

Mysql ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA

ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable) 错误的原因: Mysql配置了复制,复制功能也就意味着Master

MySQL案例02:ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES

MySQL在授权用户时出现报错信息,具体信息如下: 一.错误信息 执行命令: GRANT SELECT,INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION

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

主从都开启了gtid,在设置从库的时候遇到了问题 mysql> CHANGE MASTER TO MASTER_HOST='xxx',MASTER_USER='replicant',MASTER_PASSWORD='xxx', MASTER_LOG_FILE='bin.000050', MASTER_LOG_POS=191; ERROR 1776 (HY000): Parameters MASTER_LOG_FILE, MASTER_LOG_POS, RELAY_LOG_FILE and REL