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]: