What does “too many positional options” mean when doing a mongoexport?

后端 未结 14 1683
暖寄归人
暖寄归人 2020-12-05 09:27

mongoexport -h db.mysite.com -u myUser -p myPass -c myCollection

But the response I get is:

ERROR: too many positional options

14条回答
  •  忘掉有多难
    2020-12-05 10:00

    Create a json file in the same folder where you have your mongod.exe.

    eg: coll.json

    and open a command prompt in this folder.

    type this below in CMD.

    mongoexport --db databasename --collection collectionname --out coll.json

    and you will see like a progress bar very cool exporting all data.

提交回复
热议问题