---
name: "apply_diff_relay_logs"
section: "1p"
platform: "linux"
package: "mha4mysql-node"
version: "0.58-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/apply_diff_relay_logs"
---

# apply\_diff\_relay\_logs(1p)

Generating differential relay logs between the latest slave and target slave, and applying all binlog/relay log files. This command is automatically executed from MHA Manager on failover, and manual execution should not be needed normally.

## NAME

apply\_diff\_relay\_logs - Generating differential relay logs between the latest slave and target slave, and applying all binlog/relay log files. This command is automatically executed from MHA Manager on failover, and manual execution should not be needed normally.

## SYNOPSIS

\# For checking  apply\_diff\_relay\_logs --command=test --target\_version=5.1.56 --relay\_log\_info=s --slave\_user=s --slave\_host=s --slave\_ip=s --slave\_port=i --workdir=s

\# For generating differential log events apply\_diff\_relay\_logs --command=generate\_and\_send --target\_version=5.1.56 --scp\_user=s --scp\_host=s --latest\_mlf=s --target\_mlf=s --target\_rmlp=i --relay\_log\_info=s --server\_id=i --diff\_file\_readtolatest=s --target\_version=s --workdir=s --timestamp=s

\# For applying log files apply\_diff\_relay\_logs --command=apply --target\_version=5.1.56 --slave\_user=s --slave\_host=s --slave\_ip=s  --slave\_port=i --apply\_files=file1,file2.. --workdir=s --timestamp=s --slave\_pass=xxx
