Replication Set in MongoDB | Replica Step by Step

Поділитися
Вставка
  • Опубліковано 10 гру 2024
  • Hey there 👋. In this video you will learn about replica set in Mongodb from scratch. we will cover all errors you face when you new to Mongodb. All topics and possible issues are discussed related to Replication in Mongodb.
    👉 Method yaha hay:
    drive.google.c...
    👉 Mongodb Backup and Restore:
    • Backup and Restore wit...
    ❤️ Join WhatsApp Group:
    whatsapp.com/c...
    Find Me On:
    Instagram: / stackwisedev
    Twitter: / stackwisedev
    Facebook: www.facebook.c...
    LinkedIn: / stackwisedev
    Pinterest: pin.it/5Y0x47c
    Github: github.com/ama...
    Codepen: codepen.io/ama...
    #mongodb #mongodbtutorial #replication #stackwisedev

КОМЕНТАРІ • 76

  • @बैलगाडाशर्यत777
    @बैलगाडाशर्यत777 3 місяці тому +3

    Excellent bro, you explained in very simplest way ❤❤

  • @Zadrot1080p
    @Zadrot1080p 6 місяців тому +2

    Nice, everything is working. I'm not strong in mongodb and spend two days to find solution, but it was ez)

  • @1rv04ee065
    @1rv04ee065 Рік тому +1

    Very good explanations with clear demo of steps . Thank you for sharing the knowledge with us

  • @dixitnakhva6181
    @dixitnakhva6181 10 місяців тому +1

    Sir, please starting mein aapne 3 terminal mein 3 badi badi process chalu ki thi jisse pura terminal bhar gya tha, unn process ke baare mein bataiye, woh joh background mein chl rhi thi, please and really loved the video, I was trying to do this from last 2 days and now I finally did it because of you❤

    • @stackwisedev
      @stackwisedev  10 місяців тому +1

      You welcome ❤️ may agli video may explain kar doo ga....

  • @RahulSarma-me9jl
    @RahulSarma-me9jl 2 місяці тому +1

    Great brother ❤

  • @null-j1r
    @null-j1r 3 місяці тому

    Thank you very much bhai , bahut hi achha aur detailed video tha aapke sikane ka method bohot accha hai please carry on

    • @stackwisedev
      @stackwisedev  3 місяці тому

      Thanks k apko video pasand aai ❤️

  • @OptiExperts-f5j
    @OptiExperts-f5j Рік тому

    You are improving the quality. keep it up 👍

  • @RiazAhmed-w1m3k
    @RiazAhmed-w1m3k Рік тому

    clear concepts as usual 😍😍😍😍

  • @mahmads0323
    @mahmads0323 3 місяці тому +1

    just founded one more good teacher

  • @samalsuv
    @samalsuv 10 місяців тому +1

    You did a great job and deserve a subscribe to watch your more videos. Thank You !

  • @divyanshvishwakarma3180
    @divyanshvishwakarma3180 10 місяців тому +1

    it was a terrific explanation thank you for making this easy

  • @KrazzyAlpha
    @KrazzyAlpha 10 місяців тому +1

    I followed steps you mentioned in the video but the step at 15:55 is not working
    mongod --port 27017 --dbpath "C:\data\db" --replSet rs0 --bind_ip localhost
    After this command, my Command Prompt is running endlessly in a loop... no matter how much i wait it keeps on running... I have to close it using Ctrl + C and even after repeating the same steps the problem is still there. I tried reinstalling MongoDB completely after completely removing all MongoDB files from my pc but it still gives same problem. If you know about this issue then please let me know.

    • @stackwisedev
      @stackwisedev  10 місяців тому

      Is replica set working while process is executing endlessly in cmd?

    • @KrazzyAlpha
      @KrazzyAlpha 10 місяців тому

      @@stackwisedev no... Replica sets weren't created at all... Using rs.initiate() command i was able to switch to rs0 but replicas weren't created at any port

    • @KrazzyAlpha
      @KrazzyAlpha 10 місяців тому +1

      Few days ago I tried creating a replica set and got the same issue back then as well. I uninstalled MongoDB completely from the system and deleted all the files and reinstalled and tried again but was giving the same issue... Today I tried your method on another freshly installed MongoDB but still the same issue

    • @stackwisedev
      @stackwisedev  10 місяців тому

      This issue is not related to uninstall mongodb... Please share some logs on Instagram with me so that I'll be able to find solution for that

    • @KrazzyAlpha
      @KrazzyAlpha 10 місяців тому

      @@stackwisedev yupp... Sure thing...

  • @anthongaming2195
    @anthongaming2195 5 місяців тому +1

    Hello, Do you know any way to transfer data of all collection from one db to another db in single cluster using mongo atlas?
    I don't want to use monogdump and store.
    Please reply

    • @stackwisedev
      @stackwisedev  5 місяців тому

      In mongo atlas there is no such option

  • @Arman-qv6qy
    @Arman-qv6qy 6 днів тому +1

    Bro i want to ask that if I shut down my laptop and then on it do I have to do this process like starting replica set in command prompt ??

    • @stackwisedev
      @stackwisedev  6 днів тому +1

      Yes brother it's just a local server demonstration

  • @CrimsonChip
    @CrimsonChip Рік тому

    very detailed and informative...

  • @ManishMittal-d3i
    @ManishMittal-d3i 8 місяців тому +1

    Thank you, You explain everything in a very simple and understandable way.
    Can you please create a video or help me in how to transfer database(mongodb) from local to the vps server.

  • @Utsavkumar-w9f
    @Utsavkumar-w9f 3 місяці тому +1

    when i try to edit in mongod file after giving permission i applied the changes but mongoDB server wont start ,when i remove that changes then server got started ...?facing issue!!

    • @stackwisedev
      @stackwisedev  3 місяці тому

      Can you share your replication configurations written in file

  • @AmadAli-b3p
    @AmadAli-b3p Рік тому

    cool one video on replica find yet on youtube

  • @yashwantkumarsonkar5077
    @yashwantkumarsonkar5077 4 місяці тому +1

    When I'm starting the replica set in MongoDB in windows, then in the task manager the original MongoDB stopped.
    when I try to run the task again it doesn't work. Because of that I can't access the database and I can't do anything.
    And when I close the replica set and again start the server the task manager and mongoDB service has start running and it connect to the original MongoDB

    • @stackwisedev
      @stackwisedev  4 місяці тому

      Did you follow the steps in video?

  • @AmadRiaz
    @AmadRiaz Рік тому

    very helpful thank you sir ❤❤

  • @BangBang-2-0
    @BangBang-2-0 9 місяців тому +1

    subscribed.🤘

  • @GauravBarakoti
    @GauravBarakoti 3 місяці тому +1

    terminal close krne pr replica session close toh nahi hoga?

    • @stackwisedev
      @stackwisedev  3 місяці тому +1

      Close hoga agar apka replica ksii server per nhi ho

  • @WanRandomSubscriber
    @WanRandomSubscriber 7 місяців тому +1

    Very helpful

  • @Abdullah-ee8ny
    @Abdullah-ee8ny 9 місяців тому +1

    how will you write application logic if some replica fails?

    • @stackwisedev
      @stackwisedev  9 місяців тому

      If inside mongodb you can use mongodb tools... But if an application you can use backend technology like nodejs

  • @vishalphirkoj2818
    @vishalphirkoj2818 3 місяці тому +1

    Transaction ke liye ek video banao please

    • @stackwisedev
      @stackwisedev  3 місяці тому

      Soon brother, working on latest topics

  • @quicktutorial2761
    @quicktutorial2761 7 місяців тому +1

    excelente capo!!!

  • @apurvprajapati2088
    @apurvprajapati2088 4 місяці тому +1

    Can you please create a video for mongodb replication with different host machines and authentication enabled.

  • @abirmahmud1338
    @abirmahmud1338 10 місяців тому +1

    Thank you so much...

  • @BalajiShinde-v4h
    @BalajiShinde-v4h 11 місяців тому +3

    Go ahead mongodb DBA tutorial realtime make video

  • @Farukh_Khan_FK
    @Farukh_Khan_FK 6 місяців тому +1

    How to use Security for authorization enable with these replicas config

    • @stackwisedev
      @stackwisedev  6 місяців тому

      Simple username password or keyfikes

  • @raj_mistry01
    @raj_mistry01 5 місяців тому +1

    getting error when runnig mongod --port 27017 --dbpath "C:\data\db" --replSet rs0 --bind_ip localhost

    • @stackwisedev
      @stackwisedev  5 місяців тому

      Check your replica configuration and use 127.0.0.1 instead of localhost

  • @bestmotivationspeekar4384
    @bestmotivationspeekar4384 Рік тому

    Bhaiya shopify aap development me backend (modal, controller, Authoitcation) kaha par banye or API kaha par likhe bana do please video

  • @robinraj2872
    @robinraj2872 7 місяців тому +1

    I noticed that my old database got deleted. Please explain

    • @stackwisedev
      @stackwisedev  7 місяців тому

      Do you want to get it back or what?

  • @vishalphirkoj2818
    @vishalphirkoj2818 3 місяці тому +1

    Transaction kaise use karre with local database

  • @BittuKumar-ur9il
    @BittuKumar-ur9il 10 місяців тому +1

    Please help me mongod ke file open nahi ho raha hai notepad me

  • @AmadKhan-t3j
    @AmadKhan-t3j Рік тому

    make a detailed video on sharded clusters

  • @khangnguyenphuc7174
    @khangnguyenphuc7174 9 місяців тому

    I have a replica set: 1 primary & 2 secondaries. I want to set read preference mode to check read operations.
    In my use case, I open 3 nodes in 3 mongosh terminal. I used to think read preference mode is synced between nodes, but I have to set it separately. In addition, even I set 'secondary' mode, primary node still can read data. Therefore, I wonder how read preference modes really work?
    Thank you!

    • @stackwisedev
      @stackwisedev  9 місяців тому

      This is very easy. Latest drivers normally reads from primary but if you have set secondary and still reading from primary... There may be the latency of your secondary is higher than primary or may be there is some issue with the health of secondary as they use hadged reading... Check status using rs.status().. if still problem then share status pics and more info on my insta account thanks.....

    • @khangnguyenphuc7174
      @khangnguyenphuc7174 9 місяців тому +1

      @@stackwisedev Thank you for your help, I will check and maybe contact you later

  • @sohailshaikh5969
    @sohailshaikh5969 11 місяців тому +1

    please make a video to migration mongo to mongo and pgadmin to mongo

  • @SajanKumar-ec2us
    @SajanKumar-ec2us 5 місяців тому +1

    mongod config file save nahi ho paya

  • @Jimmy-lx9vx
    @Jimmy-lx9vx Рік тому

    ❤❤

  • @bestmotivationspeekar4384
    @bestmotivationspeekar4384 Рік тому

    Please bana do bhai🙏🙏🙏

  • @raj_mistry01
    @raj_mistry01 5 місяців тому +1

    something big error this is