...
- From the Data Repositories view, click the Add Server button icon.
- Choose one of the following modes from the Connection Mode dropdown menu and configure the connection details accordingly:
- Host/Port: Enter the Data Repository Server's host and port. To use SSL to connect to the server, enable Use SSL.
Connection String: Enter the MongoDB connection string. An example of a connection string that connects to a local server with SSL is shown below. See https://www.mongodb.com/docs/manual/reference/connection-string/ for more information about MongoDB connection strings.
Code Block title MongoDB Connection String Example mongodb://localhost:2424/?tls=true&tlsAllowInvalidHostnames=true
Info If an authentication database is specified in the connection string, you should use the
/defaultauthdb
component; only use the?authsource=defaultauthdb
option if credentials are specified in the connection string.
Enter the username and password to be used to log into your Data Repository Server.
If you chose Connection String as your connection mode, you have the option to specify credentials in either the connection string or in the Username and Password fields. If credentials are specified in both, those in the Username and Password fields will take precedence.
- Click OK.
...