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 }

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