Connecting to a Standalone Remote Mongo Database
- Updated2025-02-19
- 1 minute(s) read
Connecting to a Standalone Remote Mongo Database
Configure SystemLink to access a remote Mongo database to enhance scalability and fault tolerance.
- Launch NI SystemLink Server Configuration.
- Under NI SystemLink Service Manager, click NoSqlDatabase.
- Under Configuration, choose whether you want to connect using parameters or a custom connection string.
-
If you want to connect using parameters, click
Connect to an externally managed server using
parameters and specify the following information:
- Host—The name of the Mongo server.
- Port—The port this connection will use. The most common port is 27017.
- The username and password you use to connect to the Mongo database.
-
If you want to connect using a custom connection string,
click Connect to an externally managed server using a connection
string and enter it in the Custom connection
string textbox.
Refer to the MongoDB documentation for more information about connecting to remote MongoDB instances using replica sets.
- Click Apply.
Related Information
- MongoDB documentation
- Connecting to a Remote File Share
To ensure your SystemLink setup is scalable and fault-tolerant, connect to a remote file share using the Server Message Block (SMB) protocol.
- Setting Up a SystemLink Server
Install and configure SystemLink Server on your host to begin managing systems and working with data. SystemLink Server includes the SystemLink web application and SystemLink APIs.
- Creating a Workspace
Create a workspace to control which systems and data different types of users can interact with.
- Connection String Format
Consider the following guidelines when formatting your connection string to connect to a MongoDB instance.