mongodb - Windows MongoDB Compass 没有显示集合信息,但 Ubuntu MongoDB Compass 显示了什么?

标签 mongodb windows ubuntu mongodb-compass

我在 Ubuntu 和 Windows 上的 MongoDB 中有相同的数据库和集合。
在我在 Ubuntu 上的 Compass 中,它显示了有关集合的信息:
enter image description here
但是,我在 Windows 上的 Compass 没有显示有关该集合的信息:
enter image description here
虽然当我在 Windows 中单击集合时,它显示该集合确实有 91 个文档,就像在 Ubuntu 上一样:
enter image description here
为什么 MongoDB Compass for Windows 不显示有关集合的信息,我该如何强制它执行此操作?
附录
我在 Windows 10 虚拟机上安装了 MongoDB Compass,它正确显示了集合信息。所以也许这个问题与 Windows 无关,但更多的是一个问题,为什么 MongoDB Compass 通常不显示有关集合的信息?
enter image description here

最佳答案

我自己解决了这个问题。
对于遇到此问题的任何人,事实证明我安装了一个较旧版本的 MongoDB,它正在启动,而不是显然与 Mongo 一起安装的那个。
我卸载了所有 Mongo Compass 实例,从 https://www.mongodb.com/try/download/compass 重新安装了 Mongo Compass现在可以了。

关于mongodb - Windows MongoDB Compass 没有显示集合信息,但 Ubuntu MongoDB Compass 显示了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69863661/

相关文章:

javascript - meteor js和mongodb : how to group many collections into one

java - BasicDBObject Builder 不为单个对象附加多个条件

c++ - 使用应用程序的 Windows API commctrl.h 无法在没有 Platform SDK 的计算机上运行

python - 从服务运行时出现服务器内部服务器错误

linux - 简单替换 init 以启动控制台

javascript - 映射中的 Object.assign 返回带有额外信息的意外响应

java - 如何从mongodb中的数组列表中获取单个记录

c++ - Windows Mobile 隐藏任务栏和菜单栏

C# - 如何从 static void main 调用方法

c# ping 类在 monodevelop 中抛出异常