适配MySQL8.4位点查询

This commit is contained in:
yml2213
2026-08-17 00:23:33 +08:00
parent 76528076a7
commit 50b458e5c2
+1 -1
View File
@@ -38,7 +38,7 @@ mysql_binlog_query() {
master_status() { master_status() {
local mysql_cid="$1" 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() { state_active_binlog() {