MySQL [ERROR] Slave I/O: Found a Gtid_log_event or Previous_gtids_log_event

发布时间:2020-08-10 19:43:18 作者:feelpurple
来源:ITPUB博客 阅读:214

MySQL 5.6的复制中断,发生下面错误

2018-10-18 12:20:02 15374 [ERROR] Slave I/O: Found a Gtid_log_event or Previous_gtids_log_event when @@GLOBAL.GTID_MODE = OFF. Error_code: 1784
2018-10-18 12:20:02 15374 [ERROR] Slave I/O: Relay log write failure: could not queue event from master, Error_code: 1595
2018-10-18 12:20:02 15374 [Note] Slave I/O thread exiting, read up to log 'mysql-bin.000012', position 123 
2018-10-18 13:57:41 15374 [Note] Error reading relay log event: slave SQL thread was killed
2018-10-18 13:57:44 15374 [Warning] Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
2018-10-18 13:57:44 15374 [Warning] Slave SQL: If a crash happens this configuration does not guarantee that the relay log info will be consistent, Error_code: 0
2018-10-18 13:57:44 15374 [Note] Slave SQL thread initialized, starting replication in log 'mysql-bin.000012' at position 123, relay log './mysqld3319-relay-bin.000004' position: 286 
2018-10-18 13:57:44 15374 [Note] Slave I/O thread: connected to master 'backuper@10.156.15.1:3306',replication started in log 'mysql-bin.000012' at position 123 
2018-10-18 13:57:45 15374 [ERROR] Slave I/O: Found a Gtid_log_event or Previous_gtids_log_event when @@GLOBAL.GTID_MODE = OFF. Error_code: 1784
2018-10-18 13:57:45 15374 [ERROR] Slave I/O: Relay log write failure: could not queue event from master, Error_code: 1595


报错原因:

从MySQL 5.7向较低版本的MySQL 5.6搭建复制时,会触发这个错误。

# mysqld -V
mysqld  Ver 5.6.20 for Linux on x86_64 (MySQL Community Server (GPL))


解决方法:

使用高版本的MySQL 5.6或5.7创建复制主机。

[root@db-backup-all ~]# /opt/mysql_56_40/bin/mysqld -V
/opt/mysql_56_40/bin/mysqld  Ver 5.6.40 for linux-glibc2.12 on x86_64 (MySQL Community Server (GPL))


推荐阅读:
  1. Android 侧滑关闭Activity的实例
  2. 为什么会出现Error:collect2:ld returned 1 exit status 错误

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

error found gtid

上一篇:Facebook 又出黑科技,手机照片一键切成 3D 大片

下一篇:微信域名防封跳转系统-微信拦截检测技术

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》