Allowing Xplenty access to MongoDB

Xplenty can access your MongoDB on a variety of services and deployment models. This article discusses providing Xplenty access on your MongoDB and then details creating the MongoDB connection in Xplenty.

You must provide Xplenty access to MongoDB. If it is behind a firewall:
  • Create a MongoDB user and grant it minimum permissions required for Xplenty to read or write data from the database.
  • Allow access from Xplenty's IP addresses to MongoDB's port.
To create a MongoDB connection In Xplenty
  1. Click your avatar at the top right of the window, then click Manage Connections.
  2. To create a connection, click new connection. 
  3. Choose MongoDB.
  4. In the new Mongo DB connection window, name the connection and enter the connection information:
    • Name - name for the new connection
    • Hostname - name of the host to connect to
    • User name - database user name
    • Password - database user's password
    • Port - TCP Port to connect to. You have to allow Xplenty access to this port on the specified host in order to be able to use the connection properly
    • Database - name of database to use
    • Read Preference - Determines how the connection should route read operations to members of a replica set.
    • Authentication Database - name of the database to use for authentication. Leave empty to use default database.
    • Connect using SSL - Determines whether to connect to the database using SSL. SSL allows encryption of client/server communications for increased security.
  5. You can test the MongoDB connection by clicking test connection. Note that although the test may fail, a job may be able to use the connection because the cluster on which you execute the job may have access to the database, whereas the Xplenty web application may not.
To modify MongoDB connections in Xplenty:
  1. Click your avatar at the top right of the window, then click Manage Connections.
  2. Click a connection to modify or delete it. To exit the edit MongoDB connection window without changes, click connections at the top of the edit MongoDB connection window.

Feedback and Knowledge Base