匿名
未登录
登录
Linux78|wiki
搜索
查看“Mysql从库GTID跳过错误方法”的源代码
来自Linux78|wiki
名字空间
页面
讨论
更多
更多
页面选项
查看
查看源代码
历史
←
Mysql从库GTID跳过错误方法
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
wiki:用户|用户
您可以查看与复制此页面的源代码。
未开启GTID的处理: set global sql_slave_skip_counter=1; 如果开启了GTID,则会报错: ERROR 1858 (HY000): sql_slave_skip_counter can not be set when the server is running with @@GLOBAL.GTID_MODE = ON. Instead, for each transaction that you want to skip, generate an empty transaction with the same GTID as the transaction 处理参考: 解析二进制日志,找出gtid点 mysqlbinlog --no-defaults mysqlbin.000002 > bin.sql 或通过下述sql查出: select * from performance_schema.replication_applier_status_by_worker where LAST_ERROR_NUMBER=1032; 1032为show SLAVE STATUS ; 查出的Last_Errno; 跳过报错gtid点,如果有多个,重复执行,注意不要搞错了!! stop slave ; set @@session.gtid_next='uuid'; begin; commit; set @@session.gtid_next=automatic; start slave;
返回至
Mysql从库GTID跳过错误方法
。
导航
导航
首页
最近更改
随机页面
栏目
Nginx
Kubernetes
Spring Cloud
Wiki工具
Wiki工具
特殊页面
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志