RunCommand against a --replset Connection

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.3
    • Component/s: Operations
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When I create a mongod with --replset option,the admin database will not create.
      But some command is need to run against admin database.
      In my case,I want to execute "replSetInitiate" command by my application.
      if I create mongod with --replset,"admin" database is not exist.(And I also can't create a admin database by application)
      if I create mongod without --replset ,replSetInitiate will raise a exception.
      Would you kindly tell me a way to RunCommand without a "admin" Database.

            Assignee:
            Robert Stam
            Reporter:
            Hu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: