From bbbd21e1cf3df3ccb3913934b245ae6fc00e6084 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 3 Feb 2021 23:44: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 8d215b479..2bb90e23c 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -1395,7 +1395,7 @@ def getMasterRepSlaveUserCmd(version): tmp = db.query('show master status') sql = "CHANGE MASTER TO MASTER_HOST='" + ip + "', MASTER_PORT=" + port + ", MASTER_USER='" + \ - args['username'] + "', MASTER_PASSWORD='" + \ + clist[0]['username'] + "', MASTER_PASSWORD='" + \ clist[0]['password'] + \ "', MASTER_LOG_FILE='" + tmp[0][0] + \ "',MASTER_LOG_POS=" + str(tmp[0][1]) + ""