MongoDB In 30 Minutes

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 1 тыс.

  • @TraversyMedia
    @TraversyMedia  5 лет назад +118

    This video is 3 years old. Here is the updated one which has the same stuff but more up to date - ruclips.net/video/-56x56UppqQ/видео.html

    • @rishav4343
      @rishav4343 5 лет назад

      hey thanks man. this was simple and very nice.

    • @TheAJMarketing
      @TheAJMarketing 5 лет назад

      Hey Brad! Looking for MongoDB Replica Set on Windows and connect Node App with it. Please do a tutorial on it.

    • @bitethebyte
      @bitethebyte 4 года назад

      Hmm

    • @Namita212
      @Namita212 4 года назад

      Thanks Brad. U r awesome.

    • @tadonkemwaanicet8242
      @tadonkemwaanicet8242 4 года назад

      thank you !

  • @terryfick2890
    @terryfick2890 7 лет назад +1179

    you are truly useful to humans, keep alive !

  • @orimorningstar7094
    @orimorningstar7094 7 лет назад +162

    You are one of the best instructors I know on youtube. You explain in simple terms and write elegant code. Keep up the good work :D

  • @rayane4975
    @rayane4975 5 лет назад +9

    for all those facing problems at 6:03 (net start) :
    1. mongod --remove
    2. mongod --directoryperdb --dbpath C:\mongodb\data\db --logpath C:\mongodb\log\mongo.log --logappend --install
    3. net start MongoDB

  • @veteran35th
    @veteran35th 7 лет назад +37

    30 mins of pure gold. Thankyou.

  • @nvsWhocares
    @nvsWhocares 7 лет назад +109

    If you can not start the service (net start MongoDB):
    1. Delete all files in /data/db and /log
    2. Run cmd AS ADMINISTRATOR (NO Powershell!) Now in CMD delete the corrupt service and rerun the video commands :
    3. sc delete MongoDB
    4. Navigate into your mongodb/bin direcotry (Video ~6:00)
    5. Run the install mongod command again (Video ~6:00)
    6. net start MongoDB

  • @CodingPhase
    @CodingPhase 7 лет назад +178

    HOLY SHIT i did not know you were the guy from eduonix.... wow dude you a legend i learned node js from you on udemy

  • @stuwhoo
    @stuwhoo 7 лет назад +15

    Fantastic... I've been trying to get MongoDB running for the past couple of hours. I wish I stopped at this video tutorial first. Just the first five minutes was enough to sort my problem out, of installing it properly!. Thank you for taking the time to explain it. I really appreciate it. (You could even trim this down to an express version for a correct method of installation.)

  • @PROFjavi
    @PROFjavi 6 лет назад +7

    If you are having issues in this step in 2018...
    mongod --directoryperdb --dbpath C:\mongodb\data\db --logpath C:\mongodb\log\mongo.log --logappend --install
    Two things:
    1. You NEED to do this with CMD ADMIN privileges or you will have issues (like he said)
    2. You NEED to remove --rest from the command (as shown above)
    ... hopefully this helps

    • @snpranay
      @snpranay 6 лет назад

      how do i even install it? official site only shows the link to version 3.6, where everything is shifted to the cloud

    • @PROFjavi
      @PROFjavi 6 лет назад

      www.mongodb.com/download-center?jmp=nav#community
      then choose the windows, linux or osx version
      underneath that is any version you might want....

  • @piyushsingh1985
    @piyushsingh1985 6 лет назад

    I understood each and every word of this tutorial, so many others just rush through the video but u don'
    t, i like that very much

  • @Channel-id9ts
    @Channel-id9ts 7 лет назад +37

    I am one of those who never subscribes to any channel, you are an exception. Thanks a lot :)

    • @TraversyMedia
      @TraversyMedia  7 лет назад +11

      Well thank you. I appreciate that very much

  • @KennethStricklandAKAKenster
    @KennethStricklandAKAKenster 7 лет назад

    Great video, for anyone watching, if you want to save some time, turn the video speed to 1.25, should be a compliment to the presenter, very clear and precise

  • @danielsoto5517
    @danielsoto5517 7 лет назад +10

    oh man! I was struggling to learn mongoDB in a fun way and here you appeared to save my day!! Great video!!

  • @oberlinio
    @oberlinio 4 года назад

    I like how it's not overly planned so you're making it error sometimes or having to look something up, which is more realistic work flow. Thx

  • @sagarahuja4386
    @sagarahuja4386 7 лет назад +227

    "MR. John Doe" is very famous. I found him in every other tutorial. ;)

    • @TraversyMedia
      @TraversyMedia  7 лет назад +36

      He is :)

    • @jesus-love
      @jesus-love 7 лет назад +26

      you forgot about his wife Ms. Jane Doe

    • @vibhorkashmira2366
      @vibhorkashmira2366 6 лет назад +23

      And his daughter Miss Pizza Doe

    • @Krimson5pride
      @Krimson5pride 5 лет назад +6

      i guess it was the Darkman movie or some documentary, but they had explained John Doe is some sorta temporary name given to the dead bodies that has no identification or yet to identify.
      If male body, John Doe or if it is female body, it is Jane Doe.
      You will hear the name in a lot of thriller movies.

    • @hrefel9796
      @hrefel9796 5 лет назад +3

      you need to know what history of john doe man

  • @seancpp
    @seancpp 4 года назад +2

    MongoDB is exactly what I’ve been looking for in my next project. Thank you for this content.

  • @kendtimothy6963
    @kendtimothy6963 7 лет назад +130

    Personally, I love it at 1.5 speed. Good video!

    • @donwp
      @donwp 6 лет назад

      I didn't know that was possible. Thanks!

    • @BinaryEmyaneh
      @BinaryEmyaneh 6 лет назад +7

      You just changed my life.

    • @martinr2255
      @martinr2255 6 лет назад

      Same lol

    • @abhishekbhandari6362
      @abhishekbhandari6362 6 лет назад +6

      Try it at 2 times. That's the best speed to hear it at, with occasional pauses to think about what he said.
      He truly is an amazing instructor.

    • @257sarthakkaushik2
      @257sarthakkaushik2 5 лет назад +4

      When I see your comments I was on 1.5 speed now I am watching at 2X

  • @maxwellochieng4924
    @maxwellochieng4924 4 года назад +1

    My best Tutor. Whenever I need anything, your channel has always helped me. Thanks a million Sir. Simply the best!

  • @mrjain
    @mrjain 5 лет назад +14

    Really good. Although he gets very technical at 2:02 with the term "crap load of data"!!!

  • @sifo_io
    @sifo_io 3 года назад

    I just went from knowing nothing about mongo except the name, to literally getting it right! Thanks a lot!

  • @upadisetty
    @upadisetty 7 лет назад +3

    Wow. Short, clear, informative, to the point.
    Thanks for no junk tutorial. :)

  • @codewithnacho
    @codewithnacho 6 лет назад +1

    You are like the Yoda of Web Development. I have your courses in Eduonix and loved taking them. Keep up the great work!!

  • @inoutsoccer11
    @inoutsoccer11 5 лет назад +5

    Hey I just wanted to say thank you. Great video! I'm currently in a coding bootcamp and haven't enjoyed our lessons on SQL and Mongo until I watched this. Not only did this help me learn something, but it has also made me more interested in Mongo.
    Thanks again! (Subscribed) =]

  • @Mike-bj8sk
    @Mike-bj8sk 6 лет назад +1

    You have the best tutorials. You cover everything that needs to be covered

  • @user-og7hx5tj9s
    @user-og7hx5tj9s 5 лет назад +36

    For everybody having --rest problem, just delete this line and everything should be fixed. It's just an outdated parameter.

    • @amarpreetsingh6290
      @amarpreetsingh6290 5 лет назад +1

      Влад Галышев thnku very much

    • @7XStriderX7
      @7XStriderX7 5 лет назад

      Thank you!

    • @wrigh2uk
      @wrigh2uk 4 года назад +1

      you are a godsend

    • @dimitargetsov9690
      @dimitargetsov9690 4 года назад +1

      Tisijch blagodarnosti, Vlad, but where did You find that info (or how)?

  • @rahulasok1234
    @rahulasok1234 4 года назад +1

    I’m a MongoDB expert in 32 minutes (16 minutes to be precise since I ran it on 2x) Lol, but seriously, great video for beginners. Kudos and Thanks :)

  • @mdjunaid38
    @mdjunaid38 7 лет назад +9

    Love your tutorials.. Simple and to the point. Thanks a lot man !!

  • @yuliancheng4623
    @yuliancheng4623 5 лет назад

    It's one of the easiest and kindest tutorials I've ever followed. Every step, I didn't follow you and changed something, and it made me so creative. Thanks.

  • @sprasain1
    @sprasain1 6 лет назад +4

    You did a great job man ! I am now ready for my MongoDb interview :D

  • @mshairani
    @mshairani 7 лет назад

    not many people have a capacity to explain complicated things in such simple and easy to understand manner, in a way which is close to real world scenarios that one has to deal with on a daily basis. Well done! and keep up the good work.

  • @kalef1234
    @kalef1234 5 лет назад +4

    seems a lot has changed for the current version. there is now an option to install it as a service from the installation process so I'm not sure what all is still required from the beginning setup of this tutorial. I am getting a "the service is not responding to the control function" error EDIT: I just did the setup without doing custom and left the paths it wanted. everthing worked then. whatever

  • @Jaskaransingh-hv5eb
    @Jaskaransingh-hv5eb 7 лет назад

    I am learning login app from ur videos . really awesome .fan of traversy media.. best online tutor .. i wish i have tutor like u.

  • @navneetpandey9159
    @navneetpandey9159 7 лет назад +8

    Very useful tutorial...Thanks for keeping information crisp and to the point. Keep it up Man!!!
    :)

  • @harshitagarwal4338
    @harshitagarwal4338 5 лет назад +1

    Thanks man. This is a very useful tutorial for guys who know some sort of databases already and want to quickly jump onto MongoDB. Loved it. Thanks again

  • @okohemmanuel7187
    @okohemmanuel7187 8 лет назад +24

    Nice tutorial. Thank you so much.

  • @rosmuhammad5089
    @rosmuhammad5089 2 года назад

    thank you for this tutorial. it helps me to navigate the NoSQL database in no time. really helpful to me

  • @Rahimo
    @Rahimo 7 лет назад +6

    when I try to navigate into the mongodb folder from Command Prompt (4:30), I get an error message that says "The system cannot find the path specified". Any ideas on how to fix this?

  • @TurboWindex
    @TurboWindex 4 года назад +1

    I like it when the explanation is followed with a practical example. Superb video thank you !

  • @SNM_23745
    @SNM_23745 6 лет назад +4

    when i enter net start Mongodb iam getting an error "the service is not responding to control function " how to get rid of this error?

  • @Mental1993
    @Mental1993 6 лет назад

    Creepy fact, before you tried to find the wrong record Mary Samson, I had already created a record in my db as Mairy Simson.
    Awesome tutorial,
    So much information in just 30 min

  • @vipindeepkaur9920
    @vipindeepkaur9920 6 лет назад +4

    when I type net start MongoDB, it gives an error. net not recognized as an internal or external command. Please help

    • @NiiAyiteAryeh
      @NiiAyiteAryeh 6 лет назад

      make sure to call this command from your mongo bin directory

  • @ajakinremi7373
    @ajakinremi7373 5 лет назад

    Two years later and this video is still valuable.

  • @HankBreger
    @HankBreger 6 лет назад +3

    Please help:
    Failed global initialization: FileNotOpen: Failed to open "I:\mongoDB\log\mongo.log"
    What can I do?

  • @VyshfulThinking
    @VyshfulThinking 5 лет назад

    I love your courses, I'm a student currently, so I cant be a patron to you, but i have placements next semester, once i start to work, the first thing i want to do is support your content. thank you so much.

  • @JimitPatel139
    @JimitPatel139 6 лет назад +5

    I am getting { Error parsing command line: unrecognised option '--rest' } error message. Any additional packages that needs to be installed on windows 10?

    • @gayan.sandamal
      @gayan.sandamal 6 лет назад +3

      The --rest parameter was removed in MongoDB 3.6. So remove the --rest option from your command line.

    • @princepatrickc4611
      @princepatrickc4611 6 лет назад

      thanks man

  • @pwrs7
    @pwrs7 6 лет назад

    Excellent intro to MongoDB. I have a presentation tomorrow afternoon and this video was invaluable to me. Thanks bro.

  • @Like-a-trolling-stone
    @Like-a-trolling-stone 6 лет назад +16

    Anyone knows how to solve this : Error parsing command line: unrecognised option '--rest' ???

    • @RaviSankarRao
      @RaviSankarRao 6 лет назад +3

      recent version has some changes. --rest is not recoganised command. remove the rest and try.

    • @kalamashaka8280
      @kalamashaka8280 6 лет назад +1

      remove --rest

    • @kalamashaka8280
      @kalamashaka8280 6 лет назад +1

      you need to have command promp as an admin

    • @aishwaryagawali2672
      @aishwaryagawali2672 4 года назад

      For windows 8.1
      Get the MongoDB folder in program files, then create db folder in data, then in command prompt simply write
      cd C:\Program Files\MongoDB\Server\4.2\bin \mongod //just copy the link from actual folder
      cd C:\Program Files\MongoDB\Server\4.2\bin \mongo
      it'll get connected, then
      show dbs

  • @AnthonyFrank84
    @AnthonyFrank84 6 лет назад

    Thank you. I will now be building a MongoDB tonight because of you. Without this video, I would still be trying to figure out which version to download, and how to install properly.

  • @sonjiatekla2477
    @sonjiatekla2477 6 лет назад +3

    I am using windows 10 and getting such error. I opened cmd as administrator but it doesnt help. C:\mongodb\bin>mongod --directoryperdb --dbpath C:\mongodb\data\db --logpath C:\mongodb\log\mongodb.log --logappend --rest --install
    Error parsing command line: unrecognised option '--rest'
    try 'mongod --help' for more information

  • @souhailelmouhtadi6579
    @souhailelmouhtadi6579 6 лет назад +1

    Thanks for ur video it's very useful, i just wanted to notice that :
    The --rest parameter was removed in MongoDB 3.6 as described in this page: MongoDB Configuration Hardening and this ticket: SERVER-29000.
    Remove the --rest option from ur command line.

  • @tomyang7788
    @tomyang7788 7 лет назад +7

    what does creating a user do ? How would u be able to select which user u log on ?

    • @setry14
      @setry14 7 лет назад +2

      Believe a user is a person who can access that data. So say if you have to expose this data as a REST api then you can use that user as authentication on that api's header to GET, POST, PUT data

    • @heavestern
      @heavestern 6 лет назад

      Asking the real questions thx

  • @janlyndonjasa6466
    @janlyndonjasa6466 6 лет назад +1

    that was a literal learning session in a short period of time. Great!

  • @sureshy4716
    @sureshy4716 7 лет назад +4

    Hi,
    when i tried to run the below command
    "net start MongoDB"
    net is throwing an error , it is not recognised

    • @apnabini
      @apnabini 7 лет назад

      run terminal as administrator

    • @JzNote
      @JzNote 7 лет назад +1

      net start MongoDB : Invalid service name, even runned as admin

    • @JzNote
      @JzNote 7 лет назад +4

      www.mkyong.com/mongodb/how-to-install-mongodb-on-windows/ The MongoDB does not require installation, just download and extracts the zip file, configure the data directory and start it with command “mongod“

    • @SNM_23745
      @SNM_23745 6 лет назад +1

      how did you solve this problem?

    • @alifadhil3243
      @alifadhil3243 5 лет назад

      @@SNM_23745 Run it as an Administrator stackoverflow.com/questions/4661670/cannot-start-mongodb-as-a-service

  • @codeblood87
    @codeblood87 6 лет назад

    This is my first lecture to MongoDB, thanks broo you make it soo simple.. lovely

  • @dudibgd
    @dudibgd 7 лет назад +3

    How to deal with " Error parsing command line: unrecognised option '--install' " ? (running on Mac, 10.10.5)

    • @rohitnahata4896
      @rohitnahata4896 7 лет назад

      Check out installation steps for Mac. It was different for Ubuntu

    • @samiullahk7223
      @samiullahk7223 7 лет назад +5

      Rohit Nahata tu har time nahata hai? 😇

  • @muazhamid1160
    @muazhamid1160 2 года назад

    Has just saw your video for the very first time & I must say that I'm impressed.
    Thank you so much ❤❤❤
    It was very useful
    Now I would like to learn MongoDB in more depth
    Love from Pakistan 💚

  • @Thelaibakhan
    @Thelaibakhan 5 лет назад +3

    --rest is not recognized, can anybody help ?

    • @abeyep
      @abeyep 5 лет назад

      just delete this line and everything should be fixed. It's just an outdated parameter.

    • @Thelaibakhan
      @Thelaibakhan 5 лет назад

      I did, then it says mongodb not found, even though I've installed it before.

    • @abeyep
      @abeyep 5 лет назад

      Laiba Khan that’s really weird, I’m not sure

  • @smartarshad877
    @smartarshad877 7 лет назад

    World needs tutors like u

  • @NiaNic425
    @NiaNic425 7 лет назад +4

    what do i do? after i do net start MongoDB it gives error "The service name is invalid."

  • @jalaprasad
    @jalaprasad 6 лет назад

    Thanks brother, I just started learning MongoDB and I really worried about storing sample databases and collection while practicing, after seeing your vedio am able to store those DBs and collections now.. I really appreciate your help and knowledge sharing.

  • @overunityinventor
    @overunityinventor 7 лет назад +9

    You earned a Like!
    Is there a GUI app for database? as we have phpmyadmin for MySQL?

  • @DaveTheDeveloper
    @DaveTheDeveloper 3 года назад

    6:00 Guys if you also have the problem where you can't start MongoDB as a service,
    you have to install the stuff in cmd as an administrator. It worked for me

  • @PavanKumar-vu2mm
    @PavanKumar-vu2mm 6 лет назад +4

    the command --rest is unrecognised. what should i do?

    • @aleksandrastrelkova2008
      @aleksandrastrelkova2008 6 лет назад

      The --rest parameter was removed in new versions of mongodb. You can type command without this parameter

  • @musicandlyrics9084
    @musicandlyrics9084 2 года назад +1

    Sir , really ur 💯 💯💯 💯 great sir ,ur the real world teacher ur explanation was simply speechless

  • @avocado_battles
    @avocado_battles 6 лет назад +3

    21:30 Darude-Sandstorm made a small appearance!

  • @alicezou7358
    @alicezou7358 6 лет назад +2

    Thanks for the great video! For me, I had to uncheck the "install compass" box at the end of the installation process to make it work; and --rest seems to be removed from mongodb version 3.6

  • @martymcfly1882
    @martymcfly1882 6 лет назад +4

    FAIL unrecognized option '- -rest'

  • @extraordinaryhuman1806
    @extraordinaryhuman1806 6 лет назад

    I was totally unaware that this kind of databases exists! This is beautiful! Simple and elegant
    Thank for the tutorial

  • @aharunkara
    @aharunkara 6 лет назад

    Brad Traversy is a blessing to the community! Thanks for the tutorial.

  • @pablomendez3590
    @pablomendez3590 7 лет назад

    I think you have no idea how much you are helping me. Thank you so much!!!

  • @nikta456
    @nikta456 7 лет назад

    The CLEAREST explanation I ever seen.Thank you!

  • @jeffreybriceno
    @jeffreybriceno 7 лет назад +2

    Thank you so much for this great tutorial.
    In 30 minutes I've been improved my resume. :)

  • @Shaboinki
    @Shaboinki 6 лет назад

    Thanx for explaining a new concept in 30 mins

  • @Maejys
    @Maejys 7 лет назад +1

    Dude that was so helpful! I'm very new to back-end stuff and your teaching help me understand the basics of MongoDB (first time learning this). Thank you very much! :)

  • @ManojDeshwal
    @ManojDeshwal 4 года назад

    That is the video I was looking from a long time. Thanks buddy. Stay blesses 👍👍

  • @Dropaduski
    @Dropaduski 5 лет назад

    HELP! when I get to net start MongoDB I get the following message in cmd "The service is not responding to the control function." How do I get past this?

  • @bettadevindonesia9246
    @bettadevindonesia9246 6 лет назад

    I Am indonesian with minimum english speech, but i can understand what you're explain in every video. Thanks Brad! Jah Bless!

  • @PhaniKatakam
    @PhaniKatakam 7 лет назад

    Awesome tutorial for MongoDB beginners.. thanks a ton, Namaste from Hyd, India

  • @sarmisthasify
    @sarmisthasify 7 лет назад +1

    It was so crisp and clear that felt like I already know the subject !!! Thanks :-)

  • @lillymarie3790
    @lillymarie3790 6 лет назад +1

    I love this video! It's exactly what I was looking for so long.

  • @noctisrey2403
    @noctisrey2403 5 лет назад

    The is exactly the kind of tutorials we need ! fast and insightful ! Thanks !!

  • @AnalyticsMaster
    @AnalyticsMaster 7 лет назад

    Top draw........
    You covered quite a few commands in half an hour......
    Thank you Chief !!!

  • @murthy900
    @murthy900 6 лет назад

    You are awesome man! After watching this tutorial i am gonna take MongoDB instead of the firebase.

  • @waletopia
    @waletopia 5 лет назад

    oh I got a relief after watching this video... but come to think of it, those who give this video thumbs down, did they watch it or what? Thanks man, God Bless

  • @johnabraham658
    @johnabraham658 4 года назад +1

    Bro - You are amazing and explained clearly as i am new to this technology. Thanks

  • @rutvikpachkawade3517
    @rutvikpachkawade3517 5 лет назад

    This tutorial is very valuable!! Don't read the comments , watch the video 😁!

  • @pavellebedev3238
    @pavellebedev3238 3 года назад

    Double quotes around key name are mandatory in all cases as per JSON specification. I was surprised to learn this after years of not typing them in :)

  • @pradeepnagaraj7347
    @pradeepnagaraj7347 6 лет назад

    Excellent Explanation! Thanks for the ease you made to get into MongoDB.

  • @MaheshKumar-lt8jw
    @MaheshKumar-lt8jw 5 лет назад +2

    Very thankful to you sir it was very helpful to learn MONGODB basics

  • @deepamgupta8011
    @deepamgupta8011 5 лет назад +1

    Truely, this is lit...
    Great thanks for such a fluent explanation.

  • @qcardcode5212
    @qcardcode5212 7 лет назад

    This would be super useful if I never wanted to actually use it online. I'm amazed no one has made a tutorial about putting the database online...mind boggling.

  • @pradeepp5287
    @pradeepp5287 7 лет назад +1

    It was really useful to gather a quick insight of mongo dB.

  • @hk_build
    @hk_build 4 года назад

    The way you explained is perfect..!! thank you so much for making such video

  • @AbhishekPathak21
    @AbhishekPathak21 7 лет назад

    Oh man! Thanks a ton. Was never able to install mongodb without errors.
    This time... it was smooth. Thanks a lot.

    • @AbhishekPathak21
      @AbhishekPathak21 7 лет назад

      Can anyone clear me why --httpinterface warning was showing? Does it affect any part of service?

  • @nitinbhargava123
    @nitinbhargava123 7 лет назад +1

    I am new to mongo db and this video made me feel very comfortable! Thanks for the helpful video +1

  • @swarnendude1921
    @swarnendude1921 5 лет назад

    Excellent coverage in short time

  • @sidstam
    @sidstam 6 лет назад

    Many thanks, yours was my intro to MongoDB.

  • @maikelooijens01
    @maikelooijens01 8 лет назад

    Clearly explained!! I'm excited to go through more of your tutorials!

  • @shivammishra009
    @shivammishra009 6 лет назад +1

    Thanks for the video.
    remove --rest in the first step if you are using mongodb version 3.6 or above.

  • @awaisraza2285
    @awaisraza2285 6 лет назад

    Error parsing command line: unrecognised option '--rest' try 'mongod --help' for more information it is giving me that error please guide me to resolve this issue