How do I connect to a replica set?

If you are using version 1.1 or above of dbKoda, you can connect to a replica set using the Cluster Configuration tab in the new connection wizard, for example:


Please note, if you are more familiar with the MongoDB URI format, you can directly edit the URI down the bottom, or copy paste a URI into that field.

If you are running a previous version of dbKoda, you should use the MongoDB URI syntax.   For instance, here I connect to a 3 node replica set running on my local host:

Although it's possible to specify username/passwords in the URI string, we recommend you specify them in the Authentication section below.  Passwords in URI strings are preserved between launches of dbKoda potentially creating a security issue should someone gain access to your computer.

Is article helpful?