mirror of
https://github.com/midoks/mdserver-web
synced 2026-11-04 18:55:59 +08:00
Update index.py
This commit is contained in:
@@ -2378,10 +2378,10 @@ def getMasterRepSlaveUserCmd(version):
|
||||
base_sql = "CHANGE MASTER " + connection_name + "TO MASTER_HOST='" + ip + "', MASTER_PORT=" + port + ", MASTER_USER='" + \
|
||||
clist[0]['username'] + "', MASTER_PASSWORD='" + \
|
||||
clist[0]['password'];
|
||||
sql = ''
|
||||
sql = '<span>经典模式</span><hr/>'
|
||||
sql += base_sql + "', MASTER_LOG_FILE='" + mstatus[0]["File"] + \
|
||||
"',MASTER_LOG_POS=" + str(mstatus[0]["Position"])
|
||||
sql += "<br/><hr/>";
|
||||
sql += "<br/><hr/><span>GTID模式</span><hr/>";
|
||||
sql += base_sql + "',MASTER_USE_GTID=slave_pos,MASTER_CONNECT_RETRY=10;";
|
||||
sql += "<br/>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user