【发布时间】:2023-03-28 12:56:01
【问题描述】:
最近为 Ubuntu 下载了 MongoDB Compass,然后我从 MongoDB Atlas 复制了连接字符串以使用 MongoDB Compass 进行连接。当我打开 MongoDB Compass 时,它检测到我接受的连接字符串。我必须为数据库输入我的用户名和密码,我还确保我给了它读写访问权限,然后我将身份验证数据库设置为管理员。然后我点击连接按钮,似乎已连接但我收到此错误:
"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。 The screenshot of the error.
【问题讨论】:
-
您在关注哪些文档?
-
官方 MongoDB 文档。
标签: node.js mongodb express ubuntu-18.04