How to Set Up a Replica Set in MongoDB

preview_player
Показать описание
Replication is a very important concept in distributed databases and big data. This video explores the process of setting up replica sets in MongoDB to test the replication concept.

Replication in MongoDB (creating documents):

#mongo #mongodb #replica #replicaset #replication #docker #container #profsadat @ProfSadat
Рекомендации по теме
Комментарии
Автор

can you do this with 6.0.4 and show how to do with mongosh as bash was removed out 5.0 and higher

JustinsTrainJourneys
Автор

I followed the same thing

I get mongo is not available

But I get mongosh

So I used mongosh --port 275

It is connecting the databases

But when I am using like show dbs

I get this node is not primary

I am using m1 air and docker

amanjha
Автор

how to mongodb compass connect with primary in docker?? what port?

phamvanchuong