Skip to content

Commit

Permalink
K8SPXC-1293: Fix binlog replay if proxy protocol enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
egegunes committed Oct 23, 2023
1 parent 080dbeb commit ad58122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/pitr/recoverer/recoverer.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func (r *Recoverer) recover(ctx context.Context) (err error) {
return errors.Wrap(err, "set mysql pwd env var")
}

cmdString := "mysqlbinlog --disable-log-bin" + r.recoverFlag + " - | mysql -h" + r.db.GetHost() + " -u" + r.pxcUser
cmdString := "mysqlbinlog --disable-log-bin" + r.recoverFlag + " - | mysql -h" + r.db.GetHost() + " -P 33062 -u" + r.pxcUser
cmd := exec.CommandContext(ctx, "sh", "-c", cmdString)

cmd.Stdin = binlogObj
Expand Down

0 comments on commit ad58122

Please sign in to comment.