'autoIndexID' is not a valid collection option - mongoDB

后端 未结 3 339
借酒劲吻你
借酒劲吻你 2021-01-12 14:30

When I try to run this on my MongoDB:

db.createCollection(\"mycol\", { capped : true, autoIndexID : true, size : 6142800, max : 10000 } )

I

3条回答
  •  有刺的猬
    2021-01-12 15:18

    You can also use the option --convertLegacyIndexes (you'll need to use a fairly new version of mongorestore though).

    That has been working for me for dumps made from mongodb v2.6

提交回复
热议问题