刚安装好的mongoDB(Windows-x64) 无法连接?

发布于 2021-12-01 03:59:50 字数 3397 浏览 769 评论 5

就在本地 都无法连接

版本是3.2

系统服务已经添加,也启动了。

到安装目录下 添加了全局用户 并认证了

然后新建库,库里也添加了 同样的用户 并认证了


然后在库里 建了表,并且 添加了数据,都可以查到了。

但是 使用MongoVUE连接,连不上



错误的详细信息

Connection was refused
Unable to connect to server 127.0.0.1:27017: Invalid credential for database 'navi'..
Type: MongoDB.Driver.MongoConnectionException
Stack:    在 MongoDB.Driver.Internal.DirectMongoServerProxy.Connect(TimeSpan timeout, ReadPreference readPreference)
   在 MongoDB.Driver.MongoServer.Connect(TimeSpan timeout)
   在 MongoDB.Driver.MongoServer.Connect()
   在 MangoUI.MMongo.QSDlL5xzK686iCExThO(Object )
   在 MangoUI.MMongo.Open(Boolean mustWrite)
   在 MangoUI.MMongo.Open()
   在 MangoUI.MConnection.get_IsValid()
   在 MangoUI.WinConnect.SCOjR9kYRPerNNngykW(Object )
   在 MangoUI.WinConnect.btnTest_Click(Object sender, EventArgs e)


Invalid credential for database 'navi'.
Type: MongoDB.Driver.MongoAuthenticationException
Stack:    在 MongoDB.Driver.Communication.Security.MongoCRAuthenticationProtocol.Authenticate(MongoConnection connection, MongoCredential credential)
   在 MongoDB.Driver.Communication.Security.Authenticator.Authenticate(MongoCredential credential)
   在 MongoDB.Driver.Communication.Security.Authenticator.Authenticate()
   在 MongoDB.Driver.Internal.MongoConnection.Open()
   在 MongoDB.Driver.Internal.MongoConnection.GetNetworkStream()
   在 MongoDB.Driver.Internal.MongoConnection.SendMessage(BsonBuffer buffer, Int32 requestId)
   在 MongoDB.Driver.Internal.MongoConnection.SendMessage(MongoRequestMessage message)
   在 MongoDB.Driver.Operations.CommandOperation`1.Execute(MongoConnection connection)
   在 MongoDB.Driver.MongoServerInstance.RunCommandAs[TCommandResult](MongoConnection connection, String databaseName, IMongoCommand command)
   在 MongoDB.Driver.MongoServerInstance.Ping(MongoConnection connection)
   在 MongoDB.Driver.MongoServerInstance.Connect()
   在 MongoDB.Driver.Internal.DirectMongoServerProxy.Connect(TimeSpan timeout, ReadPreference readPreference)


Command 'authenticate' failed: auth failed (response: { "ok" : 0.0, "errmsg" : "auth failed", "code" : 18 })
Type: MongoDB.Driver.MongoCommandException
Stack:    在 MongoDB.Driver.Operations.CommandOperation`1.Execute(MongoConnection connection)
   在 MongoDB.Driver.Communication.Security.MongoCRAuthenticationProtocol.RunCommand(MongoConnection connection, String databaseName, IMongoCommand command)
   在 MongoDB.Driver.Communication.Security.MongoCRAuthenticationProtocol.Authenticate(MongoConnection connection, MongoCredential credential)
Inputs:: 
Command:  authenticate
Ok:       False
ErrorMsg: auth failed
Request:  { "authenticate" : 1, "user" : "dbuser", "nonce" : "510c86a1e874bc3b", "key" : "e683510addaa1f6afebe8c9736d2a945" }
Response: { "ok" : 0.0, "errmsg" : "auth failed", "code" : 18 }



说 认证失败,是 用户认证失败吗?可是我已经使用 auth 命令认证了啊。。。


如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

带上头具痛哭 2021-12-01 20:49:02

database  改admin 试试

女中豪杰 2021-12-01 20:36:59

是的 不支持 。。。之前不知道

琴流音 2021-12-01 20:13:58

你看下你用的软件的版本和说明,确定支持3.2?在我印象中好像没几个图形化的客户端支持3.0以上版本

鹤舞 2021-12-01 20:11:10

其实就是不支持,另找其他的了。。

风苍溪 2021-12-01 16:06:48

首先跟你说下 . MongoVUE 不支持 3.0以上的 mongodb版本 ,即使登陆上了,数据也看不到.

database 你改为空的试试

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文