MongoDB Connection
Access level: read
With this connection type, it is possible to connect to the document-oriented database MongoDB, which stores all data in documents with dynamic schemas and JSON-like field and value pairs.
Connection settings
Host | The host name (DNS name) or the IP address of the server on which the database is located. |
Port | The TCP/IP port number used by the database. |
Database | Name, schema, or instance of the relational database. |
Connection string | The URL for the shared cluster to connect to. Example: cluster0-shard-00-01.xxxx.mongodb.net:27017/admin?retryWrites=true&w=majority&ssl=true |
User name | User name for the connection to the database. |
Password | Password for the connection to the database. |
Timeout (in s) | The server selection timeout in seconds. Default value is 5. |
For a local MongoDB connection: add the host and port and leave the connection string empty.
For a cluster mongodb connection: leave the host and port empty and add the connection string, the user name, and the password. The host in the connection string is typically the name of the cluster (could be primary or secondary), and the database has to be admin in the connection string. The database you want to use for querying is to be entered in the database field.
To be able to access the service, the external IP address of the client has to be registered at the server:
- Find out the IP address via https://www.whatismyip.com/what-is-my-public-ip-address/
- Register at https://cloud.mongodb.com/v2/5efaf7ccc3c677343006f452#security/network/whitelist
Updated October 24, 2024