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

Not able to add a new user to the database

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Redhat Enterprise Linux 6.2 x86_64

      Not able to create first user after connecting to database .. screen shot below :
      ==============================================================

      [mongo@HQ-OMS10 bin]$ /opt/mongodb/bin/mongo --host hq-oms10.pbfinvst.com
      MongoDB shell version v3.4.2
      connecting to: mongodb://hq-oms10.pbfinvst.com:27017/
      MongoDB server version: 3.4.2
      > use admin;
      switched to db admin
      > { createUser: "adminuser",
      ... pwd: "adminuser",
      ... customData:

      { new admin }

      ,
      ... roles: [
      ...

      { role: "userAdminAnyDatabase", db: "admin" }

      ],
      ... writeConcern:

      { none }

      ... }
      2017-10-19T14:20:25.221-0400 E QUERY [thread1] SyntaxError: missing ; before statement @(shell):2:5

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            sbgovani Shailesh Govani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: