Dba.checkInstanceConfiguration: This function is not available through a session to an instance


在配置MySQL InnoDB Cluster时出现报错,版本5.7.24

问题描述

在MySQL Shell中执行如下命令时,出错

MySQL  localhost:3307  JS > dba.checkInstanceConfiguration('root@localhost:3307')
Dba.checkInstanceConfiguration: This function is not available through a session to an instance belonging to an unmanaged replication group (RuntimeError)

解决方法

这是由于组复制已启动,需要将启动的组复制关闭。在每个MySQL组复制成员中登陆MySQL执行

mysql> STOP GROUP_REPLICATION;

当多有组复制成员执行完上述命名时,在MySQL Shell中再次执行检查命令

 MySQL  localhost:3307  JS > dba.checkInstanceConfiguration('root@localhost:3307')
Validating local MySQL instance listening at port 3307 for use in an InnoDB cluster...

This instance reports its own address as cmiot1
Clients and other cluster members will communicate with it through this address by default. If this is not correct, the report_host MySQL system variable should be changed.

Checking whether existing tables comply with Group Replication requirements...
No incompatible tables detected

Checking instance configuration...
Note: verifyMyCnf option was not given so only dynamic configuration will be verified.
Instance configuration is compatible with InnoDB cluster

The instance 'localhost:3307' is valid for InnoDB cluster usage.

{
    "status": "ok"
}

问题得到解决。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值