MySQL5.6 主从复制 ERROR 1776 (HY000): Parameters MASTER_LOG_FILE
2018-01-03 10:36
811 查看
主从都开启了gtid,在设置从库的时候遇到了问题
解决的办法
gtid这部分知识还需要补补。
版权声明:本文为orangleliu (http://blog.csdn.net/orangleliu/)原创文章,自由传播,文章转载请声明, 多谢。
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.
解决的办法
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
gtid这部分知识还需要补补。
版权声明:本文为orangleliu (http://blog.csdn.net/orangleliu/)原创文章,自由传播,文章转载请声明, 多谢。
相关文章推荐
- MySQL5.6 主从复制 ERROR 1776 (HY000): Parameters MASTER_LOG_FILE ...
- MySQL主从复制:ERROR 1201 (HY000): Could not initialize master info structure.
- ERROR 1776 (HY000): Parameters MASTER_LOG_FILE, MASTER_LOG_POS, RELAY_LOG_FILE and RELAY_LOG_POS can
- MYSQL做主从复制的时候,出现ERROR 1201 (HY000):Could not initialize master info structure的问题
- MYSQL5.6 主从复制
- MySQL5.6 主从复制配置
- 安装MySQL5.6新建用户并创建密码时总是提示密码不符合要求:ERROR 1819 (HY000): Your password does NOT satisfy the CURRENT ……
- 两主机搭建MySQL主从复制后,show slave status显示:Last_IO_Error: error connecting to master ……
- MySQL 用户授权和bin-log日志和主从复制、读写分离(2)
- MySQL 5.6 GTID模式的主从复制
- log-error set to '/usr/local/mysql/log/mysqld.log', however file don't exists
- /etc/init.d/mysql: No such file or directory 和 ERROR 2002 (HY000): Can't connect to local MySQL server through socket 解决办法
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
- Mysql 5.6 基于GTID的主从复制及使用Amoeba配置读写分离
- Windows10 MySQL5.7.21.0 ERROR 1290 (HY000): The MySQL server is running with the --secure-file-p解决办法
- MySQL5.6基于GTID的主从复制
- rhel6系统中,mysql 5.6复制新特性下主从复制配置[基于GTID] 推荐
- mysql 主从复制 error 1677
- mysql 主从复制实验------包含授权、bin-log
- 关于mysql主从复制error_code 1593的小异常BUG