From 8cce7c97e143ebbcdf671e4cbb3efb9dafa3e1a5 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 1 Aug 2022 17:47:33 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index fb283c87e..847326b3c 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -1639,6 +1639,11 @@ def addMasterRepSlaveUser(version=''): def getMasterRepSlaveUserCmd(version): + + version_pl = getServerDir() + "/version.pl" + if os.path.exists(version_pl): + version = mw.readFile(version_pl) + args = getArgs() data = checkArgs(args, ['username', 'db']) if not data[0]: