Mongo - 保存文档时出错:1写入db时不是主要文件

问题描述 投票:3回答:1

我正在使用Robo 3T(robomongo)来连接mongo集群。我在编辑/删除文档时遇到此错误。

保存文档时出错:1写入db时不是主要文件

我搜索了这个错误,许多解决方案说连接到主群集,但我不知道如何?

mongodb robo3t mongodb-cluster
1个回答
5
投票

您需要设置主群集的连接字符串,如下所示:

1)登录mongo集群

2)单击群集

enter image description here

3)单击主名称

enter image description here

4)在robomongo中添加主群集名称作为连接字符串。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.