MongoDB - Connect with MongoDB Compass

Objective

This guide provides detailed instructions on how to connect to a MongoDB database instance using one of the most popular Open Source (SSPL) management tools for MongoDB: MongoDB Compass.

Requirements

  • Access to the Galaxy Control Panel.

  • Request a MongoDB database from the Galaxy team.

  • A stable version of MongoDB Compass installed and an internet connection.

Instructions

Installation

To install MongoDB Compass, follow the official documentation.

Connect with MongoDB Compass

  1. Open MongoDB Compass.

  2. In the connection field, enter the Service URI provided by the Galaxy team.

  3. Click "Connect" to establish a connection to the MongoDB instance.

Detailed Steps

  1. Access the Control Panel: Ensure you have access to the Galaxy Control Panel to obtain the credentials and the database service URI.

  2. Request the Database: Contact the Galaxy team and request the creation of a MongoDB database.

  3. Install MongoDB Compass: If you do not have MongoDB Compass installed, visit the official website and follow the installation instructions appropriate for your operating system.

  4. Obtain the Service URI: In the Galaxy Control Panel in the menu option “ Galaxy Database”, locate the service URI for the MongoDB database you will be connecting to.

  5. Connect in MongoDB Compass:

    • Open MongoDB Compass on your computer.

    • Copy the provided service URI and paste it into the connection field in MongoDB Compass.


      image-20240521-132802.png

    • Click the "Connect" button to connect to the database.


      image-20240521-132615.png

By following these steps, you will be able to connect to your MongoDB database instance using MongoDB Compass and begin managing your data efficiently.