Innodb Cluster

架构图
Innodb Cluster 入门(7) 连接innodb cluster

建立集群
1. 按照group replication的标准初始化数据库,但是不要启动group replication。
2. 启动mysql shell。
3. cluster = dba.create_cluster(group_name, adoptFromGR=1);
4.cluster.add_instance({‘user’:‘name’,’password’:‘password’,’host’:‘host’,’port’:port});

Mysql Router
1. 安装mysql router
2. 初始化mysql router
mysqlrouter –bootstrap [email protected]:port –directory /tmp/myrouter –conf-use-sockets –user=mysql
3. 执行start.sh
4. mysql -uuser -hhost -P6446 -p

相关文章:

  • 2021-11-12
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-12-07
  • 2021-12-01
猜你喜欢
  • 2022-03-03
  • 2022-03-05
  • 2021-09-09
  • 2021-07-12
  • 2021-06-28
  • 2021-08-30
  • 2019-08-12
相关资源
相似解决方案