Mongodb 恐慌:运行时错误:使用mongorestore.exe时切片界限超出范围?
当我尝试使用mongorestore.exe还原某些集合时,会出现该错误Mongodb 恐慌:运行时错误:使用mongorestore.exe时切片界限超出范围?,mongodb,slice,mongorestore,Mongodb,Slice,Mongorestore,当我尝试使用mongorestore.exe还原某些集合时,会出现该错误 mongorestore.exe --collection user --db dbName dump/dbName/user.bson 这与文件名太长有关吗?较小的集合似乎可以恢复正常,但较大的集合会因该错误而失败。这发生在我身上,因为我在集合上创建索引时使用了错误的大写字母,而不是在currentgames上创建索引。 mongorestore.exe --collection user --db dbName du
mongorestore.exe --collection user --db dbName dump/dbName/user.bson
这与文件名太长有关吗?较小的集合似乎可以恢复正常,但较大的集合会因该错误而失败。这发生在我身上,因为我在集合上创建索引时使用了错误的大写字母,而不是在currentgames上创建索引。
mongorestore.exe --collection user --db dbName dump/dbName/user.bson
因此,当mongodump运行时,currentgames的元数据文件被currentgames集合中的元数据覆盖,在恢复时发生此错误
请务必检查您的资本和数据库中的收藏
希望这有帮助 你找到这个了吗?有同样的问题吗