Learn how to connect to a MongoDB database instance with one of the world's most famous Open Source (SSPL) management tools for MongoDB: MongoDB Compass.
Managed Databases (also called Cloud Databases) allow you to focus on building and deploying cloud applications while OVHcloud takes care of the database infrastructure and maintenance in operational conditions.
Requirements
- a Public Cloud project in your OVHcloud account
- access to the OVHcloud Control Panel
- a MongoDB database running on your OVHcloud Cloud Databases (this guide can help you to meet this requirement)
- configure your MongoDB instance to accept incoming connections
- a MongoDB Compass stable version installed and public network connectivity (Internet)
Concept
A MongoDB instance can be managed in multiple ways. One of the easiest and most powerful is to use a Command Line Interface (CLI), as shown in our guide: Connect to MongoDB with CLI or by using programming languages, such as PHP or Python.
Another way is to interact directly using a management tool for MongoDB: MongoDB Compass.
To do so, we will need to install MongoDB Compass, configure our Cloud Databases for MongoDB instances to accept incoming connections, and finally configure MongoDB.
Instructions
Installation
Please follow the official documentation to install MongoDB Compass.
We are now ready to learn how to connect to our MongoDB instance.
Connect with MongoDB Compass
In MongoDB Compass, fill in the URI field with your service URI and click Connect
:
Now you can interact with your Cloud Databases for MongoDB:
Go further
Visit the GitHub examples repository to find out how to connect to your database with several languages.
For more information and tutorials, please see our other MongoDB and Cloud Databases support guides or explore the guides for other OVHcloud products and services.
If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for a custom analysis of your project.