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

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

    I had the same issue while using the "mongod --dbpath" command. What I was doing looked somewhat like this:

    mongod --dbpath c:/Users/HP/Desktop/Mongo_Data

    where as the command syntax was supposed to be:

    mongod --dbpath=c:/Users/HP/Desktop/Mongo_Data
    

    This worked for me. Apart from this one may take a note of the command function and syntaxes using the mongod --help command.

提交回复
热议问题