Setting Up a MongoDB Replica Set on Windows

Sdílet
Vložit
  • čas přidán 5. 01. 2024
  • Encountering issues with MongoDB transactions on Windows led me to resort to using a MongoDB Atlas URI, but it proved inconvenient for development. In pursuit of an optimal solution, I've resolved to establish a MongoDB replica set on the Windows platform, specifically on localhost. Follow the provided video guide meticulously to replicate this setup, ensuring a seamless experience not just for me but also for my fellow developers. This approach enhances the development environment by enabling efficient use of MongoDB transactions locally.
    You will get to know how to Configure primary server with secondary server in this video.
    Resources link :- amanpareek.link/guide/mongodb...
    Chapters :-
    0:00 start setting up

Komentáře • 6

  • @noyonalways
    @noyonalways Před měsícem +1

    Thank you. Its working... ❤❤❤❤

    • @AmanPareek30
      @AmanPareek30  Před měsícem

      Great now you can enjoy mongoDB most powerful feature transactions

  • @AkramKhan-ez9lr
    @AkramKhan-ez9lr Před 6 měsíci +1

    Thank you very much sir. its simple way to set replica.

    • @AmanPareek30
      @AmanPareek30  Před 5 měsíci

      I feel glad you found this guide helpful akram.

  • @harshitpant07
    @harshitpant07 Před 3 měsíci

    MongoServerError[NoReplicationEnabled]: This node was not started with replication enabled.
    when I try running rs.initiate()
    Using MongoDB: 7.0.6
    Using Mongosh: 2.2.2

    • @AmanPareek30
      @AmanPareek30  Před 3 měsíci

      It may be because we set replica set service of MongoDb 6 so you can just try with MongoDb 6 and you are using 7.6