bingo2sql icon indicating copy to clipboard operation
bingo2sql copied to clipboard

本地解析binlog日志,解析多个表时会出现异常

Open MasterJoyHunan opened this issue 3 years ago • 1 comments

bingo2sql -d psmsdb -B --start-file ./mysql-bin.000002 --start-time '2021-09-15 00:00:00' --stop-time '2021-09-16 23:59:59' -t x.sql,y.sql

返回

time="2021-09-17T17:15:36+08:00" level=error msg="binlog解析操作失败" file=bingo2sql.go line=181
time="2021-09-17T17:15:36+08:00" level=error msg="读取表结构文件失败(x.sql,y.sql): CreateFile x.sql,y.sql: The system cannot find the file specified." file=bingo2sql.go line=182

MasterJoyHunan avatar Sep 17 '21 09:09 MasterJoyHunan

建表语句放在一个文件中,每个表以冒号分隔即可。

hanchuanchuan avatar Oct 24 '21 15:10 hanchuanchuan