简体   繁体   English

将 mongo shell 连接到受限 MongoDB Atlas 数据库?

[英]Connect mongo shell to restricted MongoDB Atlas Database?

I've removed localhost in network connections from a MongoDB Atlas project.我已经从 MongoDB Atlas 项目中删除了网络连接中的 localhost。

Now my mongo shell can't connect to the MongoDB collection.现在我的 mongo shell 无法连接到 MongoDB 集合。 Other than adding localhost back to network connections, is there any other way to connect to a MongoDB collection?除了将 localhost 添加回网络连接之外,还有其他方法可以连接到 MongoDB 集合吗? I'd like to poke around the production database sometimes from the CLI, is this possible?我有时想从 CLI 中查看生产数据库,这可能吗?

You can use VPC peering to connect.您可以使用 VPC 对等互连进行连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM