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

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

    I had the same issue with the mongoexport utility (using 2.0.2). My fix was to use the FULL parameter name (i.e. not -d, instead use --db).

提交回复
热议问题