Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-398 Migrate Connections Page to Manual
  3. DOCS-13

Connection string documention has incorrect example

    XMLWordPrintableJSON

Details

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    Description

      According to http://www.mongodb.org/display/DOCS/Connections the delimiter for connection string options is ';' and '&' but the examples below it uses ',' as a delimiter which contradicts the syntax.

      Says:
      Connect to the first server to respond, whether or not it is part of a replica set or primary or secondary:

      mongodb://host1,host2,host3/?connect=direct,slaveok=true

      Should be:
      Connect to the first server to respond, whether or not it is part of a replica set or primary or secondary:

      mongodb://host1,host2,host3/?connect=direct;slaveok=true

      Says:
      Connect to a replica set with safe mode on, waiting for replication to succeed on at least two machines, with a two second timeout:

      mongodb://host1,host2,host3/?safe=true,w=2,wtimeout=2000

      Should be:
      Connect to a replica set with safe mode on, waiting for replication to succeed on at least two machines, with a two second timeout:

      mongodb://host1,host2,host3/?safe=true;w=2;wtimeout=2000

      Attachments

        Activity

          People

            bgrabar Bob Grabar
            derfel J W Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 15 weeks, 5 days ago