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

Show master status 错误 #11

Open
129duckflew opened this issue Aug 8, 2024 · 3 comments
Open

Show master status 错误 #11

129duckflew opened this issue Aug 8, 2024 · 3 comments

Comments

@129duckflew
Copy link

129duckflew commented Aug 8, 2024

数据库版本 : MySQL8.4
jdk: 21

运行脚本:

java -jar .\canal2sql-1.1.3.jar -mode online -u root -p 12345678 -P 9000 -h 192.168.103.30

连接出现报错 提示是 show master status命令有错误

com.alibaba.otter.canal.parse.exception.CanalParseException: command : 'show master status' has an error!
Caused by: java.io.IOException: ErrorPacket [errorNumber=1064, fieldCount=-1, message=You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'master status' at line 1, sqlState=42000, sqlStateMarker=#]
 with command: show master status
        at com.alibaba.otter.canal.parse.driver.mysql.MysqlQueryExecutor.query(MysqlQueryExecutor.java:61) ~[canal.parse.driver-1.1.5.jar!/:na]
        at com.alibaba.otter.canal.parse.inbound.mysql.MysqlConnection.query(MysqlConnection.java:107) ~[canal.parse-1.1.5.jar!/:na]
        at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.findEndPosition(MysqlEventParser.java:663) ~[canal.parse-1.1.5.jar!/:na]
        at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.findEndPositionWithMasterIdAndTimestamp(MysqlEventParser.java:380) ~[canal.parse-1.1.5.jar!/:na]
        at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.findStartPositionInternal(MysqlEventParser.java:438) ~[canal.parse-1.1.5.jar!/:na]
        at com.alibaba.otter.canal.parse.inbound.mysql.MysqlEventParser.findStartPosition(MysqlEventParser.java:357) ~[canal.parse-1.1.5.jar!/:na]
        at com.alibaba.otter.canal.parse.inbound.AbstractEventParser$1.run(AbstractEventParser.java:191) ~[canal.parse-1.1.5.jar!/:na]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[na:na]
# totally cost:19629 ms
@zhuchao941
Copy link
Owner

你去你的mysql实例上执行下show master status试下看

@zhuchao941
Copy link
Owner

我看了下 8.4.0 把这个命令删了
image
那不好意思 暂时不支持了这里

@129duckflew
Copy link
Author

我看了下 8.4.0 把这个命令删了 image 那不好意思 暂时不支持了这里

8.4 改成 show binary status了

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