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

Unknown command 是咋回事 #14

Open
czxin788 opened this issue Sep 10, 2021 · 1 comment
Open

Unknown command 是咋回事 #14

czxin788 opened this issue Sep 10, 2021 · 1 comment

Comments

@czxin788
Copy link

/root/czx/my2sql -user root -password 123 -work-type 2sql -start-file mysql-bin.001242 -databases db1 -add-extraInfo -output-dir tmpdir
[2021/09/10 11:44:25] [info] events.go:208 start thread to write redo/rollback sql into file
[2021/09/10 11:44:25] [info] stats_process.go:166 start thread to analyze statistics from binlog
[2021/09/10 11:44:25] [info] events.go:58 start thread 2 to generate redo/rollback sql
[2021/09/10 11:44:25] [info] binlogsyncer.go:144 create BinlogSyncer with config {1113306 mysql 127.0.0.1 3306 root utf8 false false false Local false 0 0s 0s 0 false false 0}
[2021/09/10 11:44:25] [info] events.go:58 start thread 1 to generate redo/rollback sql
[2021/09/10 11:44:25] [info] binlogsyncer.go:360 begin to sync binlog from position (mysql-bin.001242, 4)
[2021/09/10 11:44:25] [fatal] repl.go:40 error replication from master 127.0.0.1:3306 ERROR 1047 (HY000): Unknown command

@liuhr
Copy link
Owner

liuhr commented Sep 10, 2021

这个工具是使用 https://github.com/siddontang 的binlog解析库完成binlog解析, 这个错误是 github.com/siddontang/go-mysql/mysql/errname.go 包发出来的 ,应该是binlog里面的内容有这个库不识别的格式。

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

2 participants