From 4deb9c59ead438f0efe267faba191116e08293a7 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 4 Jul 2024 01:00:39 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index ecb7d5a6e..e876e6264 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -2402,8 +2402,7 @@ def getMasterRepSlaveUserCmd(version): sql = '' if not mw.inArray(mdb8,version): base_sql = "CHANGE MASTER TO MASTER_HOST='" + ip + "', MASTER_PORT=" + port + ", MASTER_USER='" + \ - clist[0]['username'] + "', MASTER_PASSWORD='" + \ - clist[0]['password'] + "'" + clist[0]['username'] + "', MASTER_PASSWORD='" + clist[0]['password'] + "'" sql += base_sql; sql += "

"; @@ -2414,8 +2413,7 @@ def getMasterRepSlaveUserCmd(version): sql += base_sql + "', MASTER_LOG_FILE='" + mstatus[0]["File"] + "',MASTER_LOG_POS=" + str(mstatus[0]["Position"]) + channel_name else: base_sql = "CHANGE REPLICATION SOURCE TO SOURCE_HOST='" + ip + "', SOURCE_PORT=" + port + ", SOURCE_USER='" + \ - clist[0]['username'] + "', SOURCE_PASSWORD='" + \ - clist[0]['password']+"'" + clist[0]['username'] + "', SOURCE_PASSWORD='" + clist[0]['password']+"'" sql += base_sql; sql += "

"; # sql += base_sql + ", MASTER_AUTO_POSITION=1" + channel_name