mongoDB 2.2.1 - 数据库无效 [英] mongoDB 2.2.1 - database not valid
本文介绍了mongoDB 2.2.1 - 数据库无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在 mongo 终端中运行 db.users.validate();
时,我得到回复:{ "errmsg" : "ns not found", "ok" : 0,有效":假}
.
When I run db.users.validate();
in the mongo terminal, I get the reply: { "errmsg" : "ns not found", "ok" : 0, "valid" : false }
.
这正常吗?我该如何解决,因为 mongod --repair
和 db.repairDatabase()
没有帮助?
Is this normal? How can I solve it, since mongod --repair
and db.repairDatabase()
won't help?
使用 Ubuntu 12.04 LTS x64、mongoDB x86_64 2.2.1(全新安装)
Using Ubuntu 12.04 LTS x64, mongoDB x86_64 2.2.1 (clean new install)
推荐答案
我认为数据库中没有这样名称的集合.如果您尝试在新数据库中执行此操作,您将收到相同的错误.
I think there is no collection with such name in database. If you try to do this in new database you will get the same error.
这篇关于mongoDB 2.2.1 - 数据库无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文