From 50b458e5c2cb816e4308e35a0c83cbd45ddbb60b Mon Sep 17 00:00:00 2001 From: yml2213 Date: Mon, 17 Aug 2026 00:23:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8DMySQL8.4=E4=BD=8D=E7=82=B9?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/archive-binlog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/archive-binlog.sh b/scripts/archive-binlog.sh index b9e640a..3017349 100755 --- a/scripts/archive-binlog.sh +++ b/scripts/archive-binlog.sh @@ -38,7 +38,7 @@ mysql_binlog_query() { master_status() { local mysql_cid="$1" - mysql_binlog_query "${mysql_cid}" 'SHOW MASTER STATUS;' | awk 'NR == 1 { print $1 "\t" $2 }' + mysql_binlog_query "${mysql_cid}" 'SHOW BINARY LOG STATUS;' | awk 'NR == 1 { print $1 "\t" $2 }' } state_active_binlog() {