TL;DR:即使在完成了docs所说的操作之后,也无法连接到Atlas集群。
嗨,所以我读了的文档,一切看起来都很好,很简单。我确实遵循了这些步骤,创建了一个免费的集群,白化了我的IP,然后尝试使用它们的示例应用程序进行连接:
const { MongoClient } = require("mongodb");
// Replace the following with your Atlas connection string
MongoDB shell version v4.4.6
Enter password:
connecting to: mongodb://cluster0-shard-00-01.x2gaq.mongodb.net:27017,cluster0-shard-00-02.x2gaq.mongodb.net:27017,cluster0-shard-00-00.x2gaq.mongodb.net:27017/Testingdb?authSource=admin&compressors=disabled&gssapiServiceName=mongodb&replicaS
我对mongodb和atlas非常陌生。在学习web开发的同时,我正在尝试将我的atlas服务器连接到mongo shell。我正在尝试运行以下命令: mongo "mongodb+srv://cluster0.6ss5b.mongodb.net/myFirstDatabase" --username Bruno 如果我在没有vpn的情况下在互联网上运行,我会得到以下错误: DNSHostNotFound: Failed to look up service "":This operation returned because the timeout peri
我有一个工作的网络应用程序与MongoDB数据库。我的应用程序正在将信息获取/发布到运行在本地主机上的数据库上。
const db = monk('localhost/datbaseName') //create/connect to database 'databaseName'
const posts = db.get('posts') //created a collection named 'posts' in 'databaseName'
我最近在mongoDB Atlas上建立了一个数据库mon
我无法连接到MongoDb数据库。我检查了几次,我的IP地址与网络访问中列出的是正确的。我有以下信息:
message:
'Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that
you\'re trying to access the database from an IP that isn\'t whitelisted. Make sure your current IP address is on your Atlas cluste
我已经将我的IP列入了白名单,并且我已经正确地替换了URI字符串中的用户名和密码(包括密码中的特殊字符),但它不起作用。我也尝试允许从任何地方访问,但结果都是一样的。我得到了这个错误:
Server running on port 5000
MongooseError [MongooseServerSelectionError]: Could not connect to any servers in your MongoDB Atlas cluster. Make sure your current IP address is on your Atlas cluster's IP w
我已经使用MongoDB上的parse.com配置了MongoDB Atlas,为MongoDB Atlas集群进行了配置。我可以使用SSH连接到Mongo Atlas集群,也可以使用本地主机parse.com库连接到Mongo Atlas集群。但是当我试图使用AWS上的解析服务器连接蒙戈阿特拉斯时,会出现以下错误
Uncaught internal server error. { MongoError: no valid replicaset members found
at Timeout._onTimeout (/var/application/juicebarParse/parse-s
我得到这个错误时,连接到MongoDB阿特拉斯使用猫鼬。首先,我尝试使用Mongo客户端,我得到了同样的错误。然后我换了一只猫鼬,它工作得很好,但突然就停止工作了。我已经在网络访问中添加了“允许从任何地方”和我的IP。
MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whi
我的nodejs应用程序在mongodb连接上工作得很好,突然出现了这个错误。然后我尝试用mongo指南针连接到mongodb,同样的错误也出现了。我找不到任何原因。 Error: querySrv ESERVFAIL _mongodb._tcp.cluster0.abcd0.mongodb.net
[nodemon] app crashed - waiting for file changes before starting... 然后我把mongodb连接的url改成了旧的url,然后我得到了这个错误。 Error: Could not connect to any servers in
我遵循并创建VPC窥视和检查激活双方(GCP和阿特拉斯)。我的GCP本机已经启用。
mongodb cidr 192.168.0.0/16
GCP ip范围10.4.0.0/16
我将10.4.0.0/16添加到Atlas白名单中,并尝试通过一个豆荚中的私有连接字符串进行连接
mongo "mongodb+srv://id:pass0@dbname-pri.some.mongodb.net/dbname"
但它会返回错误
*** You have failed to connect to a MongoDB Atlas cluster. Please ensure that y
我正在构建一个MERN堆栈应用程序。在使用个人网络时,与MongoDB地图集的连接工作正常,但是当我在办公室工作时,由于公司代理,我无法连接到MongoDB地图集。我一直收到以下错误:
err MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Mak
我正在尝试将用node.js编写的Heroku应用程序连接到阿特拉斯MongoDB云中托管的集群。
当在我的机器上本地运行我的api时,我可以使用我当前的IP地址毫无问题地访问数据库。我还可以使用mongo连接到集群。
但是,在Heroku中运行应用程序时,无法建立连接。在浏览器JS控制台中,在heroku中,我得到了错误:
MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're tryin
You have failed to connect to a MongoDB Atlas cluster. Please ensure that your IP whitelist allows connections from your network.
我也这样做了:
然后转到您的MongoDB Atlas -> NetworkAccess-> Edit->并添加当前IP地址。
我添加了它仍然得到相同的错误。也许我做错了什么。
问题是,当我从IIS引用我的build文件夹时,如何使mongoDB在本地工作?
我正在尝试将我的MERN堆栈项目连接到MongoDB地图集。通过这个链接
mongodb + srv://myUserName:myPassoword@cluster0.wbrda.mongodb.net/myCollectionName?retryWrites=true&w=majority
这个链接是添加到我的应用程序2-3天前,它是完美的工作到5小时前。现在它不起作用了,抛出错误
not connected MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cl