Error Command Line Too Many Positional Options
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more
Too Many Positional Options Have Been Specified On The Command Line
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users too many positional options when parsing Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each
Mongoexport Too Many Positional Options
other. Join them; it only takes a minute: Sign up What does “too many positional options” mean when doing a mongoexport? up vote 26 down vote favorite 7 mongoexport -h db.mysite.com -u myUser -p myPass -c myCollection But mongodump too many positional options the response I get is: ERROR: too many positional options What's that about? mongodb share|improve this question edited Sep 22 '11 at 21:27 Shamoon 533 asked Sep 22 '11 at 20:36 Aarvind 131123 What is the
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site
Mongodb Too Many Positional (i.e. '$') Elements Found In Path
About Us Learn more about Stack Overflow the company Business Learn more about mongoexport query too many positional arguments hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join
Positional Arguments Not Allowed Mongodump
the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up What does “too many http://stackoverflow.com/questions/7521163/what-does-too-many-positional-options-mean-when-doing-a-mongoexport positional options” mean when doing a mongorestore? up vote 4 down vote favorite I downloaded a mongodb dump. Now i am trying to move files from the dump to my mongodb location. I'm using mongorestore --dbpath [mongodb path] [dump path] cmd to do this. But i am seeing the too many positional options error in the command prompt. Can anyone help me with this issue. This http://stackoverflow.com/questions/20714698/what-does-too-many-positional-options-mean-when-doing-a-mongorestore is the error from the command line: C:\Documents and Settings\>mongorestore -dbpath C:\Program Files\Mon goDb\data\db C:\Documents and Settings\My Documents\localadventure s\localadventures ERROR: too many positional options Import BSON files into MongoDB. I tried again today and saw the following message in my cmd prompt: C:\>mongorestore --dbpath "C:\Program Files\MongoDb\data\db" "C:\Documents and S ettings\seemanapallik\My Documents\localadventures\localadventures" Mon Dec 23 09:05:01.515 [tools] C:\Documents and Settings\seemanapallik\My Docum ents\localadventures\localadventures\adventure.bson Mon Dec 23 09:05:01.515 [tools] going into namespace [localadventures.ad venture] Mon Dec 23 09:05:01.531 [tools] warning: Restoring to localadventures.adventure without dropping. Restored data will be inserted without raising errors; check y our server log 1 objects found Mon Dec 23 09:05:01.546 [tools] Creating index: { key: { _id: 1 }, ns: " localadventures.adventure", name: "_id_" } Mon Dec 23 09:05:01.546 [tools] C:\Documents and Settings\seemanapallik\My Docum ents\localadventures\localadventures\patch_version.bson Mon Dec 23 09:05:01.546 [tools] going into namespace [localadventures.pa tch_version] Mon Dec 23 09:05:01.546 [tools] warning: Restoring to localadventures.patch_vers ion without dropping. Restored data will be inserted without raising errors; che ck your server log 2 objects found Mon Dec 23 09:05:01.562 [tools] Creating index: { key: { _id: 1 }, ns: " localadventures.patch_version", name: "_id_" } Mon Dec 23 09:05:01.562 [tools] C:\Documents and Settings\seemanapallik\My Docum ents\localadventures\localadvent
here for a quick overview of the site Help Center Detailed answers to any questions you might http://stackoverflow.com/questions/25921183/mongoexport-too-many-positional-options have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting https://groups.google.com/d/topic/mongodb-user/2RlSfDLUIlc ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 too many million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up MongoExport Too many positional options up vote 0 down vote favorite Am trying to run a mongoexport using a remote connection by filtering on date ranges. A very simple query, however, I am running into positional errors issue. too many positional I;ve read through most of the posts regarding it, did the epoch conversion etc. But completely hit a block. Hopefully someone here can figure out what I am doing wrong. Below is my command and the error message: C:\ mongoexport --host 1.1.1.111:1111 --db IQ -u user -p password --collection CallLog --out calllog.json --query '{"Call.StartTime":{"$gte":new Date(1411066005000),"$lte": new Date(1406918805000)}}' Error parsing command line: too many positional options try 'mongoexport --help' for more information We use the authenticationDatabase option when connecting and running queries from mongo. Tried the above using that as well. But same error. What am I doing wrong here? Thanks so much in advance. Regards, Simak mongodb mongoexport share|improve this question asked Sep 18 '14 at 19:49 BRZ 348618 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote resolved this by interchanging the " and ' marks..Didn't realise that those made all the difference. Thanks! share|improve this answer answered Sep 18 '14 at 23:04 BRZ 348618
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen