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

    • Task
    • Status: Closed
    • Minor - P4
    • Resolution: Works as Designed
    • 3.6.3
    • No versions
    • mongodump, mongorestore
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: