You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def createProcess(cmd):
p = subprocess.Popen(
cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
result = p.stdout.read().decode("utf8")
code = p.wait()
if code:
return code, result
else:
return code, result
start = int('start binlog num')
stop = int('stop binlog num')
for number in range(start, stop):
print(number)
command="bingo2sql --start-file=/dir/mysql-bin.0{} --minimal-update=false --sql-type=delete -t table_name.sql -B >> /tmp/result_1.sql".format(number)
runcmd = createProcess(command)`
bingo2sql --start-file=mysql-bin.004097 --stop-file=mysql-bin.004152 -t /home/work/table.sql > x.sql
不管是只用了--start-file还是--start-file和--stop-file都用了,都只解析出了第一个binlog里的内容,后面的都没有解析,请问是哪里姿势不对。
测试过用=号、用空格,也测试了相对路径、绝对路径,都还是一样。
thanks
The text was updated successfully, but these errors were encountered: