gpt4 book ai didi

robo3t - 无法使用 Robo3T 连接到 Mongo 副本集

转载 作者:行者123 更新时间:2023-12-03 23:08:06 25 4
gpt4 key购买 nike

我在使用 RoboMongo 连接到 Mongo 集群时遇到了问题。当我在指南针中使用相同的连接字符串时,它可以工作。但是 Compass Community Edition 不像 Robomongo 那样灵活。

Cannot connect to replica set "Employee UAT"[hhds6666:27027].

A primary with different host name [hhds6666.XXXXXXX.int:27027] found in server side. Please double check if same host names and ports are used as in server's replica set configuration.

If same set name is used for different replica sets, this configuration is supported only on different instances of Robomongo. Please open a new Robomongo instance for each replica set which has the same set name.

Reason:Different members found under same replica set name "UAT_RS"


我浏览了很多链接,例如:
https://github.com/Studio3T/robomongo/issues/1422
https://github.com/Studio3T/robomongo/issues/1345
类似的问题在这里: Unable to connect to MongoDB Replica Set from other server using robo3T and in C#

最佳答案

第一个解决方案 :
尝试删除“副本集”名称,它有效
enter image description here
第二种解决方案
使用相同的配置创建与“hhds6666.XXXXXXX.int:27027”的直接连接。
因为,错误状态

"A primary with different host name [hhds6666.XXXXXXX.int:27027] found in server side."
要么肯定会工作

关于robo3t - 无法使用 Robo3T 连接到 Mongo 副本集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60984891/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com