MIC简单安装

mysql80-community-release-el7-1.noarch包

[root@localhost /]# yum install mysql80-community-release-el7-1.noarch.rpm

[root@localhost ~]# yum install -y mysql-router

[root@localhost ~]# yum install -y mysql-community-server

[root@localhost ~]# yum install -y mysql-shell

[root@localhost ~]# mysqlsh #进入mysqlshell#

MySQL JS > ? dba

MySQL JS > dba.deploySandboxInstance(3310)

MySQL JS > dba.deploySandboxInstance(3320)

MySQL JS > dba.deploySandboxInstance(3330)

MySQL JS > connect root@localhost:3310

MySQL localhost:3310 ssl JS > var cluster=dba.createCluster('test')

MySQL localhost:3310 ssl JS > cluster.addInstance('root@localhost:3320')

MySQL localhost:3310 ssl JS > cluster.addInstance('root@localhost:3330')

[root@localhost sandboxdata]# mysqlrouter & #初始化router#

[root@localhost sandboxdata]# mysql -uroot -h 192.168.214.146 -P 6446 -pmysql

原文地址:https://www.cnblogs.com/Knight7971/p/9548365.html