Tuesday, October 19, 2021

Running 2 different versions of Mongodb in windows 10

1. Install both the mongodbs with different instance name
2. stop one of the service.
3. edit mongod.cfg file change port from 27017 to 27018.
4. start the service that was stopped

Connection strings
-------------------
mongodb://locahost:27017
mongodb://locahost:27018