top of page

Step-by-Step Guide to Use MongoDB Atlas


Step 1: Create a MongoDB Atlas Account

  1. Go to: https://www.mongodb.com/cloud/atlas

  2. Click "Start Free"

  3. Sign up with:

    Email + password OR

    Google/GitHub account

    • ree

🔹 Step 2: Create Your First Cluster

  1. After login, click on "Build a Database"

    ree
  2. Select Shared Cluster (Free) for practice

  3. Choose:

    • Cloud Provider: AWS or GCP

    • Region: Closest to you (Mumbai for Pune)

  4. Click Create Cluster

    ree

🔹 Step 3: Create a Database User

  1. After cluster is ready (takes 1–2 mins), click Database > Database Access

  2. Click “Add New Database User”

  3. Set:

    • Username and Password (remember it)

    • Role: Read and write to any database

      ree
  4. Click Add User

Step 4: Allow Access From Your IP

  1. Go to Network Access > Add IP Address

  2. Click "Add Current IP Address"

    ree
    • OR use 0.0.0.0 for all IPs (for testing only)

  3. Click Confirm

Step 5: Connect to the Database

  1. Go to Database > Connect > Connect your application

  2. Copy the connection string — it looks like:



mongodb+srv://<username>:<password>@cluster0.mongodb.net/?retryWrites=true&w=majority

Replace <username> and <password> with your credentials.


ree

🔹 Step 6: Use MongoDB Atlas with Compass (GUI)

  1. Download Compass: https://www.mongodb.com/try/download/compass

  2. Open Compass, paste the connection string, and connect

  3. You can now:

    • Create databases/collections

    • Run queries (find, insert, update)

    • View documents visually


ree

 
 
 

Recent Posts

See All
20 Stunning AI Prompts

20 Stunning AI Prompts (Similar Style to Your Example) Figurines & Collectibles “A realistic 1/7 scale figurine of the pictured character...

 
 
 

Comments


© 2023 by newittrendzzz.com 

  • Facebook
  • Twitter
  • Instagram
bottom of page