Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我db.users.validate();在 mongo 终端中运行时,我得到了回复:{ "errmsg" : "ns not found", "ok" : 0, "valid" : false }.
db.users.validate();
{ "errmsg" : "ns not found", "ok" : 0, "valid" : false }
这是正常的吗?我该如何解决它,因为mongod --repair并且db.repairDatabase()无济于事?
mongod --repair
db.repairDatabase()
使用 Ubuntu 12.04 LTS x64、mongoDB x86_64 2.2.1(全新安装)
我认为数据库中没有此类名称的集合。如果您尝试在新数据库中执行此操作,您将收到相同的错误。