首页 > 数据库 >MySQL MGR 搭建过程常见问题

MySQL MGR 搭建过程常见问题

时间:2023-08-11 11:22:23浏览次数:62  
标签:常见问题 group log relay replication MySQL MGR ERROR Plugin

故障1

[ERROR] Plugin group_replication reported: 'This member has more executed transactions than those present in the group. Local transactions: bb874065-c485-11e8-8b52-000c2934472e:1 > Group transactions: 3db33b36-0e51-409f-a61d-c99756e90155:1-11'
[ERROR] Plugin group_replication reported: 'The member contains transactions not present in the group. The member will now exit the group.'
[Note] Plugin group_replication reported: ‘To force this member into the group you can use the group_replication_allow_local_disjoint_gtids_join option'

根据提示打开set global group_replication_allow_local_disjoint_gtids_join=ON;

故障二

[ERROR] Plugin group_replication reported: 'This member has more executed transactions than those present in the group. Local transactions: bb874065-c485-11e8-8b52-000c2934472e:1 > Group transactions: 3db33b36-0e51-409f-a61d-c99756e90155:1-15'

解决方案:

该故障和故障1的不同之处在于该问题出现时,参数group_replication_allow_local_disjoint_gtids_join已经设置成为on了。解决该问题的方法是执行reset master就行,然后重新在主节点和从节点开启通道,即

CHANGE MASTER TO MASTER_USER='rpl_user', MASTER_PASSWORD='rpl_pass' FOR CHANNEL 'group_replication_recovery';

故障3

[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.
[ERROR] Slave I/O for channel 'group_replication_recovery': error connecting to master '[email protected]:' - retry-time: 60 retries: 1, Error_code: 2005
[ERROR] Plugin group_replication reported: 'There was an error when connecting to the donor server. Please check that group_replication_recovery channel credentials and all MEMBER_HOST column values of performance_schema.replication_group_members table are correct and DNS resolvable.'
[ERROR] Plugin group_replication reported: 'For details please check performance_schema.replication_connection_status table and error log messages of Slave I/O for channel group_replication_recovery.'
[Note] Plugin group_replication reported: 'Retrying group recovery connection with another donor. Attempt /'

这个问题是由于测试环境上三台主机的hostname设置成为了同一个名称,改了hostname之后,这个问题就解决了。

故障四

#在线上正式环境操作时,出现下面的错误,
mysql--root@localhost:(none) ::>>START GROUP_REPLICATION;
ERROR (HY000): The server is not configured properly to be an active member of the group. Please see more details on error log.
#查看log文件,发现只有一个warning:
2019-02-20T07::30.233937Z [Warning] Plugin group_replication reported: 'Group Replication requires slave-preserve-commit-order to be set to ON when using more than 1 applier threads.
set global slave_preserve_commit_order=on

故障5

2019-02-20T08::31.088437Z [Warning] Plugin group_replication reported: '[GCS] Connection attempt from IP address 192.168.9.208 refused. 
Address is not in the IP whitelist.'
2019-02-20T08::32.088676Z [Warning] Plugin group_replication reported: '[GCS] Connection attempt from IP address 192.168.9.208 refused.
Address is not in the IP whitelist.

在my.cnf中配置group_replication_ip_whitelist参数即可解决

故障6

ERROR] Failed to open the relay log './localhost-relay-bin.000011' (relay_log_pos ).
[ERROR] Could not find target log file mentioned in relay log info in the index file './work_NAT_1-relay-bin. index' during relay log initialization.
[ERROR] Slave: Failed to initialize the master info structure for channel ''; its record may still be present in 'mysql.slave_master_info' table, consider deleting it.
[ERROR] Failed to open the relay log './localhost-relay-bin-group_replication_recovery.000001' (relay_log_pos ).
[ERROR] Could not find target log file mentioned in relay log info in the index file './work_NAT_1-relay-bin-group_replication_recovery.index' during relay log initialization.
[ERROR] Slave: Failed to initialize the master info structure for channel 'group_replication_recovery'; its record may still be present in 'mysql.slave_master_info' table, consider deleting it.
[ERROR] Failed to create or recover replication info repositories.
[ERROR] Slave SQL for channel '': Slave failed to initialize relay log info structure from the repository, Error_code:
[ERROR] /usr/local/mysql/bin/mysqld: Slave failed to initialize relay log info structure from the repository
[ERROR] Failed to start slave threads for channel ''

这个错误是由于slave节点由于某种原因导致找不到relay-log的位置了,需要重新reset slave

故障7

This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *mi

ght* want to use the less safe log_bin_trust_function_creators variable) Error_code: 1418
 

标签:常见问题,group,log,relay,replication,MySQL,MGR,ERROR,Plugin
From: https://www.cnblogs.com/lovezhr/p/17622560.html

相关文章

  • RISC-V公测平台发布 · 使用YCSB测试SG2042上的MySQL性能
    实验介绍:YCSB(全称为Yahoo!CloudServingBenchmark),该性能测试工具由Java语言编写(在之前的MC文章中也提到过这个,如果没看过的读者可以去看看之前MC那一期),主要用于云端或者服务器端的数据库性能测试工具,其内部涵盖了常见的NoSQL数据库产品,如Cassandra、MongoDB、HBase、Redis等等......
  • The MySQL server is running with the LOCK_WRITE_GROWTH option so it cannot execu
    然后百度参考:TheMySQLserverisrunningwiththeLOCK_WRITE_GROWTHoptionsoitcannotexecutethisstatement_冰尘s1的博客-CSDN博客mysql报错TheMySQLserverisrunningwiththeLOCK_WRITE_GROWTHoptionsoitcannotexecutethisstatem_言默夜雨的博客-CSDN博客......
  • JLR EDI 项目 MySQL 方案开源介绍
    近期为了帮助广大用户更好地使用EDI系统,我们根据以往的项目实施经验,将成熟的EDI项目进行开源。用户安装好知行之桥EDI系统之后,只需要下载我们整理好的示例代码,并放置在知行之桥指定的工作区中,即可开始使用。今天的文章主要为大家介绍JLREDI项目,了解如何获取开源的项目代......
  • CentOS7 卸载MariaDB/MySQL
    查询是否安装yumlistinstalled|grepmariadb 删除MariaDB软件yumremovemariadbmariadb-server删除数据目录,如有改变请参看/etc/my.cnfrm-rf/var/lib/mysql删除配置文件rm/etc/my.cnf 方法二:#检查mariadb是否存在rpm-qa|grepmariadb#mariadb-libs-5.5.6......
  • MySQL之数据排序
    在MySQL中,我们经常需要从数据库中检索数据,并根据特定的要求对数据进行排序。通常情况下,我们会根据数据中某一列的值进行排序,例如按照价格从低到高或从高到低对商品进行排序。但有时候,我们需要在数据中按照一定的规则或顺序进行排序,例如按照字母表顺序对姓名进行排序,或者按照自定义......
  • mysql 高性能count表
    --mysql高性能count表SELECTSQL_CALC_FOUND_ROWS1FROMtable_namelimit1;SELECTfound_rows()ASrowcount;selectcount(1)ascntfromtable_name;--35G1102888行的表--2.13sec和29.84sec--11G14216365--28.60sec和48.43sec--结论:......
  • centos7.X安装mysql5.7 – 东凭渭水流
    1.下载mysql5.7 可以使用windows下载好后上传至Linux。网络条件好的推荐使用 wgethttps://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.43-1.el7.x86_64.rpm-bundle.tar2.解压tar-xvfmysql-5.7.43-1.el7.x86_64.rpm-bundle.tar(不带z)ps:由于centos自带mariadb,......
  • Tidb异名恢复Mysql数据库的过程
    Tidb异名恢复Mysql数据库的过程背景先说坑:TiDB备份恢复的方式1.mysqldump+mysqlsource的方式.2.mydumper+loadertidb的一个工具组件3.lightningdumpling的备份恢复方式是4.brbackuprestore备份恢复的方式.好像除了方式1都没提供明确的更换数据库的......
  • 开源数据库Mysql_DBA运维实战 (DDL语句)
    DDL编辑DDL语句数据库定义语言:数据库、表、视图、索引、存储过程.例如:CREATE DROPALTERDDL库定义库{                创建业务数据库:CREAATEDATABASE  ___数据库名___ ;                数据库名要求{                ......
  • flink-cdc同步mysql数据到elasticsearch
    1,什么是cdcCDC是(ChangeDataCapture变更数据获取)的简称。核心思想是,监测并捕获数据库的变动(包括数据或数据表的插入INSERT、更新UPDATE、删除DELETE等),将这些变更按发生的顺序完整记录下来,写入到消息中间件中以供其他服务进行订阅及消费。2,flink的cdc项目地址:https://github......