mirror of
https://github.com/actiontech/dble.git
synced 2026-05-07 06:51:12 -05:00
to solve test the problems encountered during inner 311 (#1980)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user