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

 

相关文章:

  • 2021-04-29
  • 2021-11-27
  • 2021-08-14
  • 2021-09-17
  • 2021-08-09
  • 2022-02-13
  • 2022-12-23
  • 2021-04-02
猜你喜欢
  • 2022-12-23
  • 2021-05-21
  • 2021-07-06
  • 2021-05-16
  • 2021-12-30
  • 2021-12-04
  • 2021-12-18
相关资源
相似解决方案