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

后端 未结 14 1678
暖寄归人
暖寄归人 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:24

    I had the same problem. Found a group post somewhere which said to remove the space between the '-p' and the password, which worked for me.

    Your sample command should be:

    mongoexport -h db.mysite.com -u myUser -pmyPass -c myCollection
    

提交回复
热议问题