My Oracle Support Banner

Dba.getCluster: Subquery Returns More Than 1 Row (RuntimeError) (Doc ID 2772637.1)

Last updated on APRIL 30, 2021

Applies to:

MySQL Server - Version 8.0 and later
Information in this document applies to any platform.

Goal

On : 8.0 version, InnoDB cluster

After dissolving the cluster and rebuild it again with another name, below error is observed when trying to query any of cluster functions through mysqlsh.

Dba.getCluster: Subquery returns more than 1 row (RuntimeError)

---
mysql> select * from mysql_innodb_cluster_metadata.clusters\G
*************************** 1. row ***************************
  cluster_id: xxxxxxxxx
  cluster_name: xxxxxx
  description: Default Cluster
  options: NULL
  attributes: {"adopted": 0, "default": true, "opt_gtidSetIsComplete": false, "group_replication_group_name": "xxxxxxxxx"}
  cluster_type: gr
  primary_mode: pm
router_options: NULL
*************************** 2. row ***************************
  cluster_id: xxxxxxxxxxx
  cluster_name: xxxxxxxx
  description: Default Cluster
  options: NULL
  attributes: {"adopted": 0, "default": true, "opt_gtidSetIsComplete": false, "group_replication_group_name": "xxxxxxxx"}
  cluster_type: gr
  primary_mode: pm
router_options: NULL
2 rows in set (0.00 sec)

---

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.