Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
documentation:latest:mongodbconfbackend [2016/07/19 12:10]
127.0.0.1 external edit
documentation:latest:mongodbconfbackend [2019/09/23 15:44] (current)
Line 17: Line 17:
 dbName = llConfDB dbName = llConfDB
 collectionName = configuration collectionName = configuration
 +; using a single server
 host = 127.0.0.1:​27017 host = 127.0.0.1:​27017
 +; using a replicaSet
 +; host = mongodb://​mongo1.example.com,​mongo2.example.com/?​replicaSet=myset
 ssl = 1 ssl = 1
 ; authentication parameters ; authentication parameters
Line 27: Line 30:
 ^           ​Optional parameters (see [[http://​search.cpan.org/​perldoc?​MongoDB%3A%3AMongoClient|MongoDB::​MongoClient]] man page)            ^^^ ^           ​Optional parameters (see [[http://​search.cpan.org/​perldoc?​MongoDB%3A%3AMongoClient|MongoDB::​MongoClient]] man page)            ^^^
 ^           ​Name ​           ^             ​Comment ​             ^  Example ​  ^ ^           ​Name ​           ^             ​Comment ​             ^  Example ​  ^
-| db_name ​                  | Admin database (dafault: admin) ​ | admin      |+| db_name ​                  | Admin database (default: admin) ​ | admin      |
 | auth_mechanism ​           | Authentication mechanism ​        | PLAIN      | | auth_mechanism ​           | Authentication mechanism ​        | PLAIN      |
 | auth_mechanism_properties |                                  |            | | auth_mechanism_properties |                                  |            |
Line 45: Line 48:
 > db.createCollection("​configuration"​) > db.createCollection("​configuration"​)
 ... ...
-> db.addUser({user:"​lluser",​pwd:"​llpassword",​roles:​["​readWrite"​]})+> db.createUser({user:"​lluser",​pwd:"​llpassword",​roles:​["​readWrite"​]})
 ... ...
 > exit > exit