Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能够拿到sql,但是RowData为空 #17

Closed
loving-irene opened this issue Oct 9, 2020 · 1 comment
Closed

能够拿到sql,但是RowData为空 #17

loving-irene opened this issue Oct 9, 2020 · 1 comment

Comments

@loving-irene
Copy link

canal-server:1.1.4

按照 sample 样例进行测试,能够正常输出sql

但是打印的 RowData 为空,类型为 \Google\Protobuf\Internal\RepeatedField 并不是期望的 \Com\Alibaba\Otter\Canal\Protocol\RowData[]

查看了 example 和 canal 日志,并没有报错

不知道是什么原因

@loving-irene
Copy link
Author

已经解决

问题是 Mysql 的 binlog-format 未设置成功。

虽然按照教程变更了 /etc/my.cnf 的配置,也有重启,最后检查发现并没有变更成功,设置之后就能够拿到了。

需要注意的是,mysql 的 variable 分为 global 和 session 两个级别。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant