首页 > 解决方案 > 在 innodb 集群中获取 ipallowlist

问题描述

我是 innodb 集群的新手,在设置 innodb 集群时,有一个步骤来设置ipAllowlist

c.addInstance("cluster_admin@service_name_of_new_node:3306",{ipAllowlist: "node1_service_name,new_node_service_name,...all_existing_service_names_in_this_cluster", recoveryMethod:"clone"});

您如何检索当前的 ipAllowlist?

标签: mysql-8.0mysql-innodb-cluster

解决方案


您可以使用

 cluster = dba.getCluster()
 cluster.options()

推荐阅读