在Ubuntu上通过Compass加载MongoDB Atlas时出错



最近为Ubuntu下载了MongoDB Compass,然后我从MongoDB Atlas中复制了连接字符串,以便使用MongoDB Compass。当我打开MongoDB Compass时,它检测到一个我接受的连接字符串。我必须输入数据库的用户名和密码,我还确保我给了它readWrite访问权限,然后我将身份验证数据库设置为admin。然后我点击了连接按钮,似乎已经连接,但我得到了这个错误:

"An error occurred, while loading navigation:(Unauthorized) not authorized on adminto execute command {hostInfo: 1, $clusterTime: { clusterTime:{15968188 1}, signature:{hash:{0 [20 202 80 145 95 128 153 13 117 177 59 15 72 163 143 56 16 217 179 110]}, keyId: 6854717737982230528.0000000 }}, Isid: {4 [140 166 93 131 187 215 73 247 156 156 59 49 80 208 94 140]} } }".

我知道我连接到了MongoDB,因为我可以从compass应用程序创建新的数据库,但我无法从compass程序中看到我的DBS和COLLECTIONS。错误的屏幕截图。

在阅读了这篇文章后,我也更新了我的MongoDB Compass。现在它又起作用了。我在Windows64b上使用免费的MongoDB Atlas和MongoDB Compass,两年后它刚刚停止工作。因此,John Rossberg给出了正确的答案,除此之外,答案是免费层停止使用旧的MongoDB Compass。我的旧版本是1.14.6。它现在再次使用MongoDB Compass 1.22.1,没有对Atlas帐户进行任何修改。MongoDB Compass 1.14.6仍然抛出错误。

我通过更新到MongoDB Compass 的最新版本解决了这个问题

最新更新