to solve test the problems encountered during inner 311 (#1980)

This commit is contained in:
wd2365151147
2020-07-29 18:28:45 +08:00
committed by GitHub
parent b7e6a2c914
commit b74adf3d3a
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ clusterIP=10.186.61.132:2181
clusterPort=5700
rootPath=/dble
#cluster namespace, please use the same one in one cluster
clusterID=cluster-1
clusterId=cluster-1
# if HA need sync by cluster, only useful when useOuterHa=true
needSyncHa=false
# unit is millisecond
+2 -1
View File
@@ -8,7 +8,8 @@ for M in ${ip_master_arr[@]}
do
mysql -h$M -p3306 -uroot -p123456 \
-e "SET @@GLOBAL.group_replication_bootstrap_group=1;" \
-e "create user 'repl'@'%';" \
-e "drop user if exists repl;" \
-e "create user repl@'%';" \
-e "GRANT REPLICATION SLAVE ON *.* TO repl@'%';" \
-e "flush privileges;" \
-e "change master to master_user='root' for channel 'group_replication_recovery';" \
@@ -191,7 +191,7 @@ def main(log1,dbXml,userXml,portCnf):
manager_user = getMangagerUser(userXml)
port1 = getPort(portCnf)
manager_user['port'] = port1
log.info("Get hosts from schema.xml file.")
log.info("Get hosts from db.xml file.")
hosts = getHosts(dbXml)
log.info("MySQL instance status check.")
for dhname in hosts.keys():