Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11072

Problem running "mongoimport command"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • Windows OS

    Description

      Generally this should work as per the documentation, but it ain't working if you are trying to execute from the server after connecting to "mongo.exe"

      mongoimport --db test --collection restaurants --drop --file ~/downloads/primer-dataset.json

      Instead, before even entering the mongo.exe console, at bin, the below command is importing the data -

      mongoimport.exe --db test --collection restaurants --drop --file ~/downloads/primer-dataset.json

      Attachments

        Activity

          People

            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5 years, 44 weeks, 2 days ago