From cc27602454a2a4288ec5c02af9e5eedfe7d5f16e Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 2 Apr 2025 16:18:44 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 803d081f9..5f5d3b044 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -2406,7 +2406,7 @@ def getMasterRepSlaveUserCmd(version): cmd_status = "show master status" if pk_version.parse(version) > pk_version.parse("8.0"): - cmd_status = "show replica status" + cmd_status = "SHOW BINARY LOG STATUS" mstatus = db.query(cmd_status) if len(mstatus) == 0: return mw.returnJson(False, '未开启!')