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 RELAY_LOG_POS cannot be set when MASTER_AUTO_POSITION is active.
  • 1
  • 2

解决的办法

mysql>  change master to master_auto_position=0;
Query OK, 0 rows affected (0.34 sec)

mysql>  CHANGE MASTER TO MASTER_HOST=‘xxx’,MASTER_USER=‘replicant‘,MASTER_PASSWORD=‘xxx’, MASTER_LOG_FILE=‘bin.000050‘, MASTER_LOG_POS=191;
Query OK, 0 rows affected, 2 warnings (0.51 sec)

mysql> START SLAVE;
Query OK, 0 rows affected (0.08 sec)

mysql> SHOW SLAVE STATUS \G

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

时间: 2024-09-29 10:41:40

MySQL5.6 主从复制 ERROR 1776 (HY000): Parameters MASTER_LOG_FILE的相关文章

mysql5.7密码过期ERROR 1862 (HY000): Your password has expired. To log in you must change

环境: ubuntu14.04  mysql5.7 一.mysql5.7 密码过期问题 报错: ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords. 翻译: 错误1862(HY000):你的密码已经过期.登录必须改变它使用一个客户端,支持过期的密码. 解决方法: 1. 用忽略授权表的方法进入mysql  

[MYSQL] 使用 mysql-5.6.10-win32 (MySQL 5.6纯净版 ) 出现ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

win : window 10 mysql : mysql-5.6.10-win32 (MySQL 5.6纯净版 ) download From : Qt开源社区 http://www.qter.org/portal.php?mod=view&aid=10  ( https://pan.baidu.com/s/1boJQvJh ) 使用 mysql-5.6.10-win32 (MySQL 5.6纯净版 ) 出现ERROR 2003 (HY000): Can't connect to MySQL

ERROR 2003 (HY000): Can't connect to MySQL server on '' (10060) CentOS7 安装二进制包mysql5.7.19

前两天在阿里买了个ECS云服务器,CentOS7.3的.安装mysql5.7.19 官网最新版的 全名mysql-5.7.19-linux-glibc2.12-x86_64.tar.gz,二进制版本. 5.7.19较之前的版本有了很大的变化: 1.从MySQL 5.7.18开始,my-default.cnf不再包含在安装包中.2.解压后包根目录里没有data,所以解压之后先新建data,一个存储mysql所有数据库和表的文件夹.初始化的目的也是先初始化它,开始时为空.3.5.7.6 版本开始,M

mysql5.7设置简单密码报错ERROR 1819 (HY000): Your password

[问题] 有时候,只是为了自己测试,不想密码设置得那么复杂,譬如只想设置root的密码为123456. SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123456'); 但是会报错: mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123');ERROR 1819 (HY000): Your password does not satisfy the current policy re

MySQL5.7 报错 ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement

MySQL5.7 报错 : ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement 需要重新设置密码.那我们就重新设置一下密码,命令如下: set password = password('123456'); 原文地址:https://www.cnblogs.com/Dev0ps/p/11738557.html

MySQL5.6主从复制最佳实践

MySQL5.6     主从复制的配置 环境 操作系统:CentOS-6.6-x86_64 MySQL 版本:mysql-5.6.26.tar.gz 主节点 IP:192.168.31.57        主机名:edu-mysql-01 从节点 IP:192.168.31.59        主机名:edu-mysql-02 MySQL 主从复制官方文档 http://dev.mysql.com/doc/refman/5.6/en/replication.htm l MySQL 主从复制(也

Mysql添加用户错误:ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value解决方法

添加用户 insert into mysql.user(Host,User,Password) values("localhost","test",password("1234")); 报以下的错误 ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value错误 mysql5.1以上版本,我是在5.6版本上操作的. 错语原因: mysql用户表的中某些字段不能为空,没有默

ERROR 1010 (HY000): Error dropping database (can't rmdir '.\qpweb', errno: 41) 删库失败问题的解决

Win8 下,MySQL5.5,root 用户登录 MySQL 5.5 Command Line Client,删除 qpweb 数据,执行命令 drop database qpweb;报错信息:ERROR 1010 (HY000): Error dropping database (can't rmdir '.\qpweb', errno: 41)解决方法如下:1. 先在 MySQL CMD 窗口找到库目录: 2. 再在系统 CMD 切换到库目录: 3. 最后将该库目录 qpweb 删除即可:

MySQL报错:ERROR 2013 (HY000): Lost connection to MySQL server during query

首先贴上实验用各版本: OS:CentOS 6.5 MySQL: mysql> select version ();+------------+| version () |+------------+| 5.6.22     |+------------+1 row in set (0.00 sec) 事情是这样的:本来是要在虚机上搭建一个wordpress做实验,刚创建完数据库,就在赋权额时候发生不在计划的错误: mysql>grant all on wordpress.* to [emai