mysqlbinlog 报错

来源:4-9 指定时点的恢复

muke_007

2019-01-03

图片描述

[root@docker-node1 mysql]# mysqlbinlog --no-defaults --stop-position=84555 --database=mc_orderdb mysql-bin.000014 > mc_order_diff.sql
WARNING: The option --database has been used. It may filter parts of transactions, but will include the GTIDs in any case. If you want to exclude or include transactions, you should use the options --exclude-gtids or --include-gtids, respectively, instead.

写回答

2回答

muke_007

提问者

2019-01-03

[root@docker-node1 mysql]# mysql --version

mysql  Ver 14.14 Distrib 5.7.22, for Linux (x86_64) using  EditLine wrapper

执行了这个操作,

[root@docker-node1 mysql]# mysqlbinlog --no-defaults --exclude-gtids --stop-position=84555 --database=mc_orderdb mysql-bin.000014 > mc_order_diff.sql

报错如下

ERROR: Malformed Gtid_set specification '--database=mc_orderdb'.

ERROR: Could not configure --exclude-gtids '--database=mc_orderdb'


1
0

sqlercn

2019-01-03

这是因为你启用了gitd才会有这个提示,一般来说直接忽略就可以了。

0
2
sqlercn
回复
muke_007
用 --skip-gtids 这个参数试一下
2019-01-04
共2条回复

高性能可扩展MySQL数据库设计及架构优化 电商项目

从基础设计入手,设计高性能可扩展的千万级数据库架构

1155 学习 · 166 问题

查看课程