Setting Up a MongoDB Replica Set on Windows
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
Thank you. Its working... ❤❤❤❤
Great now you can enjoy mongoDB most powerful feature transactions
Thank you very much sir. its simple way to set replica.
I feel glad you found this guide helpful akram.
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
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