File tree 1 file changed +11
-9
lines changed
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 462
462
exit 0
463
463
elif [[ $3 == " new" ]]
464
464
then
465
- CLUSTERCMD=" --wsrep-new-cluster"
465
+ CLUSTERCMD=' --wsrep-new-cluster --wsrep-cluster-address="gcom://" '
466
466
start
467
467
exit 0
468
468
elif [[ $3 == " add" ]]
@@ -521,15 +521,17 @@ then
521
521
find $MIMBINARIES /* /bin -name mysql
522
522
fi
523
523
exit 0
524
- else
525
- for INSTANCEPORT in $( cat $CONFDIR /* .cnf | grep " ^port" )
526
- do
527
- echo " ${INSTANCEPORT} :"
528
- echo " ---"
529
- $MYSQLBIN $DEFAULTDATABASE -NBe " $# "
530
- echo " ---"
531
- done
532
524
fi
525
+
526
+ allports # All ports are defined in $ALLPORTS
527
+ for INSTANCEPORT in ${ALLPORTS[@]}
528
+ do
529
+ echo " ${INSTANCEPORT} :"
530
+ echo " ---"
531
+ $MYSQLBIN $DEFAULTDATABASE -P $INSTANCEPORT -NBe " $# "
532
+ echo " ---"
533
+ done
534
+
533
535
exit 0
534
536
fi
535
537
You can’t perform that action at this time.
0 commit comments