Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
OS: Mac OS X 10.8.3
Application: php 5.2.3
Driver: Doctrine 1.0.2 driver (from: https://github.com/doctrine/mongodb)
*Location*: http://docs.mongodb.org/manual/reference/connection-string/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31
*Referrer*: https://www.google.com/
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: reference/connection-string
OS: Mac OS X 10.8.3 Application: php 5.2.3 Driver: Doctrine 1.0.2 driver (from: https://github.com/doctrine/mongodb) *Location*: http://docs.mongodb.org/manual/reference/connection-string/ *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31 *Referrer*: https://www.google.com/ *Screen Resolution*: 1920 x 1080 *repo*: docs *source*: reference/connection-string
Description
The page does not include a connection string for a database with options.
For example, I wanted to connect to a database and provide a replicaset name in the URI. Given the reference material I would expect to use:
mongodb://myuser:myspass@primaryserver.domain.com:37017,primaryserver.domain.com:37027/mydata?replicaSet=myreplicaset
I believe the string above to be correct. If this was in the documentation and explicitly described then I would know that the mongo client I was using was failing to parse the string correctly. Currently I don't know what the problem is.