环境:

mysql5.6

 

1.主库开启gtid
gtid_mode=ON
enforce_gtid_consistency=ON
log_slave_updates=1

2.发现从库报错误
Last_IO_Error: The slave IO thread stops because the master has @@GLOBAL.GTID_MODE ON and this server has @@GLOBAL.GTID_MODE OFF

3.从库也开启gtid

log-bin=mysql-bin
binlog_format=row
gtid_mode=ON
enforce_gtid_consistency
log-bin=/home/mysql/binlog/binlog.bin

4.重启从库,启动同步进程

 

-- The End --

 

相关文章:

  • 2022-12-23
  • 2022-03-08
  • 2021-06-08
  • 2021-07-07
  • 2021-06-08
  • 2021-12-09
  • 2022-03-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2022-03-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案