mongoDB ,使用mongodb VUE出现异常
大前端圈 2013-12-16 09:49:51 今天打算安装mongoDB,安装了mongoDB VUE之后,建立一个连接,连接建立成功,
但是不能打开数据库,出现异常:
Unable to fetch Collection stats
Invalid credentials for database 'dbtest'.
Type: MongoDB.Driver.MongoAuthenticationException
Stack: 在 MongoDB.Driver.Internal.MongoConnection.Authenticate(String databaseName, MongoCredentials credentials)
在 MongoDB.Driver.Internal.MongoConnection.CheckAuthentication(MongoDatabase database)
在 MongoDB.Driver.MongoServerInstance.AcquireConnection(MongoDatabase database)
在 MongoDB.Driver.MongoServer.AcquireConnection(MongoDatabase database, Boolean slaveOk)
在 MongoDB.Driver.MongoCursorEnumerator`1.AcquireConnection()
在 MongoDB.Driver.MongoCursorEnumerator`1.GetFirst()
在 MongoDB.Driver.MongoCursorEnumerator`1.MoveNext()
在 MongoDB.Driver.MongoDatabase.GetCollectionNames()
在 MangoUI.MCollections.GetAll(String db)
在 MangoUI.MCollections.GetIV(String db)
在 MangoUI.ComDBOverview.rCmHL9nB0KO3XsoHGGK(Object , Object )
在 MangoUI.ComDBOverview.RenderMe()
Command 'authenticate' failed: auth fails (response: { "code" : 18, "ok" : 0.0, "errmsg" : "auth fails" })
Type: MongoDB.Driver.MongoCommandException
Stack: 在 MongoDB.Driver.Internal.MongoConnection.RunCommand(String collectionName, QueryFlags queryFlags, CommandDocument command)
在 MongoDB.Driver.Internal.MongoConnection.Authenticate(String databaseName, MongoCredentials credentials)
Inputs::
Command: authenticate
Ok: False
ErrorMsg: auth fails
Request: { "authenticate" : 1, "user" : "wk", "nonce" : "fc63d5315a16461b", "key" : "973feed86cb8c34c91e00a96b2ff7b42" }
Response: { "code" : 18, "ok" : 0.0, "errmsg" : "auth fails" }