GreatSQL社区

搜索

[已解决] aws rds 重启了一下mysql 主从 改了配置结果蛀虫报不同步了

503 2 2023-2-2 19:39
  1. MySQL [(none)]> show slave status\G
  2. *************************** 1. row ***************************
  3.                Slave_IO_State:
  4.                   Master_Host: test-spot-account-1-mysql-rds-rdscluster-lub78ygdju5q.cluster-cgtdxk1dunry.ap-northeast-1.rds.amazonaws.com
  5.                   Master_User: dbsync
  6.                   Master_Port: 3306
  7.                 Connect_Retry: 60
  8.               Master_Log_File: mysql-bin-changelog.016406
  9.           Read_Master_Log_Pos: 104695227
  10.                Relay_Log_File: relaylog.072138
  11.                 Relay_Log_Pos: 4
  12.         Relay_Master_Log_File: mysql-bin-changelog.016406
  13.              Slave_IO_Running: No
  14.             Slave_SQL_Running: Yes
  15.               Replicate_Do_DB:
  16.           Replicate_Ignore_DB:
  17.            Replicate_Do_Table:
  18.        Replicate_Ignore_Table: mysql.rds_replication_status,mysql.rds_monitor,mysql.rds_sysinfo,mysql.rds_configuration,mysql.rds_history
  19.       Replicate_Wild_Do_Table:
  20.   Replicate_Wild_Ignore_Table:
  21.                    Last_Errno: 0
  22.                    Last_Error:
  23.                  Skip_Counter: 0
  24.           Exec_Master_Log_Pos: 104695227
  25.               Relay_Log_Space: 534
  26.               Until_Condition: None
  27.                Until_Log_File:
  28.                 Until_Log_Pos: 0
  29.            Master_SSL_Allowed: No
  30.            Master_SSL_CA_File:
  31.            Master_SSL_CA_Path:
  32.               Master_SSL_Cert:
  33.             Master_SSL_Cipher:
  34.                Master_SSL_Key:
  35.         Seconds_Behind_Master: NULL
  36. Master_SSL_Verify_Server_Cert: No
  37.                 Last_IO_Errno: 1593
  38.                 Last_IO_Error: The replication receiver thread cannot start because the master has GTID_MODE = OFF_PERMISSIVE and this server has GTID_MODE = ON.
  39.                Last_SQL_Errno: 0
  40.                Last_SQL_Error:
  41.   Replicate_Ignore_Server_Ids:
  42.              Master_Server_Id: 1002243840
  43.                   Master_UUID: d9b1d5db-27c1-39d9-88a5-c46b3481c6e6
  44.              Master_Info_File: mysql.slave_master_info
  45.                     SQL_Delay: 0
  46.           SQL_Remaining_Delay: NULL
  47.       Slave_SQL_Running_State: Slave has read all relay log; waiting for more updates
  48.            Master_Retry_Count: 86400
  49.                   Master_Bind:
  50.       Last_IO_Error_Timestamp: 230202 11:17:00
  51.      Last_SQL_Error_Timestamp:
  52.                Master_SSL_Crl:
  53.            Master_SSL_Crlpath:
  54.            Retrieved_Gtid_Set:
  55.             Executed_Gtid_Set: 7d458255-d8a2-3d51-9252-116b341e85ca:1-5,
  56. d9b1d5db-27c1-39d9-88a5-c46b3481c6e6:1-1352080327
  57.                 Auto_Position: 1
  58.          Replicate_Rewrite_DB:
  59.                  Channel_Name:
  60.            Master_TLS_Version:
  61. 1 row in set (0.00 sec)
复制代码
主从复制遇到上述报错,请问该怎么处理
全部回复(2)
yejr 2023-2-2 20:29:15
错误信息中已有明显提示:
  1.                 Last_IO_Error: The replication receiver thread cannot start because the master has GTID_MODE = OFF_PERMISSIVE and this server has GTID_MODE = ON.
复制代码

主从上的GTID MODE不一致,需要修改。
ShawnYan 2023-2-6 08:10:22
楼主:
结果蛀虫报不同步了, 这里的“蛀虫”是指哪个?
aontimer

3

主题

0

博客

13

贡献

新手上路

Rank: 1

积分
22

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2024-4-20 21:44 , Processed in 0.014901 second(s), 9 queries , Redis On.
快速回复 返回顶部 返回列表