Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2323

mongodump error specifying the password flag/parameter as a command line argument -p

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Works as Designed
    • Affects Version/s: 3.6.3
    • Fix Version/s: No version
    • Component/s: mongodump, mongorestore
    • Labels:
      None
    • Environment:
      Ubuntu 18+

      Description

      Hi Team,

       

      When I try to using mongodump/mongoresstore in a command line with password flag it is throwin an error line saying as below - 

      2019-07-01T10:17:03.325+0200 error parsing command line options: expected argument for flag `p, --password', but got option `authenticationDatabase'2019-07-01T10:17:03.325+0200 error parsing command line options: expected argument for flag `-p, --password', but got option `authenticationDatabase'2019-07-01T10:17:03.325+0200 try 'mongodump --help' for more information .                                                                               But what I doubt about it is - we should pass the argument -p/-password as a  parameter in command line without passing passwprd like -ppasowrd-something.

      It is not preferred to pass a password as per my understanding. because it will in the latest history of the instance.

      But when I try wihout -p parameter it works fine and it ask for the password to be entered to take a backup or restore.

      Can you please give me the context of it. Just for the information and for batter understanding I prefer -p without Password in the command line.   

      Thanks & Regards

      Madhu 

        Attachments

          Activity

            People

            Assignee:
            seth.payne Seth Payne (Inactive)
            Reporter:
            madhungowda6590@gmail.com Madhu N
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: