Update index.py

This commit is contained in:
Mr Chen
2024-05-15 19:31:30 +08:00
parent 4c9e717559
commit 76229b6651
+3 -3
View File
@@ -2403,8 +2403,8 @@ def getMasterRepSlaveUserCmd(version):
clist[0]['password'] + \
"', MASTER_LOG_FILE='" + mstatus[0]["File"] + \
"',MASTER_LOG_POS=" + str(mstatus[0]["Position"]) + channel_name
if version == '8.0':
if version == '8.0' or version == '8.1' or version == '8.2' or version == '8.3':
sql = "CHANGE REPLICATION SOURCE TO SOURCE_HOST='" + ip + "', SOURCE_PORT=" + port + ", SOURCE_USER='" + \
clist[0]['username'] + "', SOURCE_PASSWORD='" + \
clist[0]['password'] + \
@@ -2416,7 +2416,7 @@ def getMasterRepSlaveUserCmd(version):
"', MASTER_LOG_FILE='" + mstatus[0]["File"] + \
"',MASTER_LOG_POS=" + str(mstatus[0]["Position"]) + channel_name
if version == "8.0":
if version == '8.0' or version == '8.1' or version == '8.2' or version == '8.3':
sql = "CHANGE REPLICATION SOURCE TO SOURCE_HOST='" + ip + "', SOURCE_PORT=" + port + ", SOURCE_USER='" + \
clist[0]['username'] + "', SOURCE_PASSWORD='" + \
clist[0]['password'] + \