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" }
...全文
6426 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
srhlwdamon 2015-06-23
  • 打赏
  • 举报
回复
引用 3 楼 lbq613613 的回复:
权限认证问题。mongo默认的启动方式是没有权限认证的,就是不需要用户名密码,但是如果你启动mongo服务的时候加上了-auth,则必须使用正确的用户名和密码才能登陆。 我之前关于这个问题写过一篇博客,希望对你能有帮助: http://blog.csdn.net/libaoqiang613/article/details/18842911 我也是最近刚学习了mongo,正在使用中,欢迎留言交流。
给力
辰一更 2015-06-09
  • 打赏
  • 举报
回复
引用 3 楼 lbq613613 的回复:
权限认证问题。mongo默认的启动方式是没有权限认证的,就是不需要用户名密码,但是如果你启动mongo服务的时候加上了-auth,则必须使用正确的用户名和密码才能登陆。 我之前关于这个问题写过一篇博客,希望对你能有帮助: http://blog.csdn.net/libaoqiang613/article/details/18842911 我也是最近刚学习了mongo,正在使用中,欢迎留言交流。
正解
meidayhxp 2014-07-25
  • 打赏
  • 举报
回复
遇到同样问题
李保强 2014-03-04
  • 打赏
  • 举报
回复
权限认证问题。mongo默认的启动方式是没有权限认证的,就是不需要用户名密码,但是如果你启动mongo服务的时候加上了-auth,则必须使用正确的用户名和密码才能登陆。 我之前关于这个问题写过一篇博客,希望对你能有帮助: http://blog.csdn.net/libaoqiang613/article/details/18842911 我也是最近刚学习了mongo,正在使用中,欢迎留言交流。
piaoluo525063516 2014-02-27
  • 打赏
  • 举报
回复
权限认证的问题 自己看下 是不是启用了-auth
yiyuanhong1987 2014-02-26
  • 打赏
  • 举报
回复
引用 楼主 wk843620202 的回复:
今天打算安装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" }
和你一样的问题,后来有解决吗?

1,798

社区成员

发帖
与我相关
我的任务
社区描述
MongoDB相关内容讨论区
社区管理员
  • MongoDB社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧