「已注销」 2016-11-29 10:24 采纳率: 0%
浏览 2143

MongVUE认证用户失败,用命令行可以认证成功。

![图片说明](https://img-ask.csdn.net/upload/201611/29/1480414904_326643.png)图片说明

报错:

Error encountered
Unable to connect to server 127.0.01:27017: Invalid credential for database 'admin'..
Type: MongoDB.Driver.MongoConnectionException
Stack: 在 MangoUI.ComServerView.RefreshDBs(MMongo mc, TimeSpan& data, TimeSpan& gui, Boolean throwEx)
在 MangoUI.ComServerView.RenderMe()

Invalid credential for database 'admin'.
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.RunCommandAsTCommandResult
在 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" : "adminw", "nonce" : "4fc225388563f8ee", "key" : "4dea70ce5ea6b5cf5ea0bf9b69872be1" }
Response: { "ok" : 0.0, "errmsg" : "auth failed", "code" : 18 }

  • 写回答

1条回答 默认 最新

  • oyljerry 2016-11-29 10:35
    关注

    换一个客户端试试。可能客户端问题

    评论

报告相同问题?

悬赏问题

  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 路易威登官网 里边的参数逆向
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?
  • ¥50 需求一个up主付费课程
  • ¥20 模型在y分布之外的数据上预测能力不好如何解决
  • ¥15 processing提取音乐节奏
  • ¥15 gg加速器加速游戏时,提示不是x86架构
  • ¥15 python按要求编写程序
  • ¥15 Python输入字符串转化为列表排序具体见图,严格按照输入