适配MySQL8.4位点查询
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user