[英]Connect to remote Mongodb server on mongoshell
I started using mongoshell to connect to my remote mongodb using the following:我开始使用 mongoshell 使用以下命令连接到我的远程 mongodb:
connect (" connectionstring with username and login info") connect (" 带有用户名和登录信息的连接字符串")
I saw this was method I saw on mongodb documentation used for windows mongoshell and wanted to confirm I was doing this correctly.我看到这是我在用于 windows mongoshell 的 mongodb 文档中看到的方法,并想确认我这样做是正确的。
the reference:参考资料:
https://docs.mongodb.com/manual/reference/method/connect/#example https://docs.mongodb.com/manual/reference/method/connect/#example
db = connect("remote_ip:27017/myDatabase")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.