zhuchao941 / canal2sql Goto Github PK
View Code? Open in Web Editor NEW同时支持在线和离线解析binlog,输出标准sql
同时支持在线和离线解析binlog,输出标准sql
17:11:45.376 [destination = null , address = localhost/127.0.0.1:3306 , EventParser] ERROR c.g.z.c.parser.BinlogFileEventParser - dump address localhost/127.0.0.1:3306 has an error, retrying. caused by
java.net.MalformedURLException: no protocol: 'file:C://Users//xxx//Downloads//mysql-bin.009848'
at java.net.URL.(URL.java:611) ~[na:1.8.0_372]
at java.net.URL.(URL.java:508) ~[na:1.8.0_372]
at java.net.URL.(URL.java:457) ~[na:1.8.0_372]
at com.github.zhuchao941.canal2sql.fetcher.BinlogFileLogFetcher.open(BinlogFileLogFetcher.java:63) ~[classes!/:1.1.2]
at com.github.zhuchao941.canal2sql.connection.BinlogFileConnection.dump(BinlogFileConnection.java:68) ~[classes!/:1.1.2]
at com.alibaba.otter.canal.parse.inbound.AbstractEventParser$1.run(AbstractEventParser.java:262) ~[canal.parse-1.1.5.jar!/:na]
at java.lang.Thread.run(Thread.java:750) [na:1.8.0_372]
java -jar canal2sql-1.1.2.jar -mode file -ddl ddl.sql -file_url 'file:C://Users//xxx//Downloads//mysql-bin.009848'
支持一张表的多条语句合并成一条语句吗,比如;
INSERT INTO TABL_NAME VALUES (A,A),(B,B);
大佬能支持生成的SQL语句写入到文件和生成语句完成后程序自动退出吗。
code: 400, The specified parameter "PageSize" is not valid. request id: 1E29C517-A051-5171-88FE-B8878BD90C7F
https://api.aliyun.com/troubleshoot?q=InvalidParameter&product=Rds&requestId=1E29C517-A051-5171-88FE-B8878BD90C7F
阿里云获取binlog文件的接口改了,对于PageSzie增加了必须小于等于1000的限制
个人感觉实时在线模式很好用,有个想法是针对比较重要的数据库,通过长期后台运行保存最近几天的binlog解析出的sql和恢复sql,在出问题时可提高恢复速度,不用再去找对应的时间点和pos参数,通过搜索有问题的sql找到恢复的sql。仅供建议哈。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.