Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1808

RunCommand against a --replset Connection

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

      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@mongodb.com Robert Stam
            Reporter:
            MagicHu Hu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: