bingo2sql
bingo2sql copied to clipboard
本地解析binlog日志,解析多个表时会出现异常
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
建表语句放在一个文件中,每个表以冒号分隔即可。