Mysql Innodb cluster does not show mysql server instances in Mysql shell I followed docker innodb cluster manual method to create an innodb cluster. Now in mysql server instance, by running select * from performance_schema.replication_group_members, I can see the group contains 3 nodes:



However, mysql shell gives only 1 node in the cluster:



Why they are not identical?  I think the replication group is the same thing as an innodb cluster in this example.
The unofficial docker innodb cluster manual does not use MySQL Shell to set up and configure the MySQL InnoDB cluster.

If you want/need to use the MySQL Shell to manage your InnoDB cluster then you must "adopt" the running Group Replication group. To do so, use the adoptFromGr option of dba.createCluster():

dba.createCluster("testcluster", {adoptFromGr: true})


For more information, please consult the official userguide:

https://dev.mysql.com/doc/refman/8.0/en/mysql-innodb-cluster-from-group-replication.html

Cheers,

Miguel