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
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.)
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
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
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.
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) =]
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.
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.
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
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
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?
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
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.
I am getting { Error parsing command line: unrecognised option '--rest' } error message. Any additional packages that needs to be installed on windows 10?
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
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.
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
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.
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
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“
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 💚
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.
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
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
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! :)
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?
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
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.
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
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
hey thanks man. this was simple and very nice.
Hey Brad! Looking for MongoDB Replica Set on Windows and connect Node App with it. Please do a tutorial on it.
Hmm
Thanks Brad. U r awesome.
thank you !
you are truly useful to humans, keep alive !
lol, thanks man :)
agree.
True
Haha. Exactly we need more people like him.
hahaha loved this
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
Thank you!
And you got the best pic
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
Thqu so much
30 mins of pure gold. Thankyou.
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
you are a beautiful human. go and live a life full of happiness.
ok will do. :-)
Thank you so much :)
Thanks for that, Z :-)
Love you!
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
Yeah thats me :) Thanks
I LOVE THAT COURSE
can you post the link to that
Haha, this happened to me with another guy... The Data is watching lol
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.)
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
how do i even install it? official site only shows the link to version 3.6, where everything is shifted to the cloud
www.mongodb.com/download-center?jmp=nav#community
then choose the windows, linux or osx version
underneath that is any version you might want....
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
I am one of those who never subscribes to any channel, you are an exception. Thanks a lot :)
Well thank you. I appreciate that very much
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
oh man! I was struggling to learn mongoDB in a fun way and here you appeared to save my day!! Great video!!
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
"MR. John Doe" is very famous. I found him in every other tutorial. ;)
He is :)
you forgot about his wife Ms. Jane Doe
And his daughter Miss Pizza Doe
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.
you need to know what history of john doe man
MongoDB is exactly what I’ve been looking for in my next project. Thank you for this content.
Personally, I love it at 1.5 speed. Good video!
I didn't know that was possible. Thanks!
You just changed my life.
Same lol
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.
When I see your comments I was on 1.5 speed now I am watching at 2X
My best Tutor. Whenever I need anything, your channel has always helped me. Thanks a million Sir. Simply the best!
Really good. Although he gets very technical at 2:02 with the term "crap load of data"!!!
I just went from knowing nothing about mongo except the name, to literally getting it right! Thanks a lot!
Wow. Short, clear, informative, to the point.
Thanks for no junk tutorial. :)
You are like the Yoda of Web Development. I have your courses in Eduonix and loved taking them. Keep up the great work!!
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) =]
You have the best tutorials. You cover everything that needs to be covered
For everybody having --rest problem, just delete this line and everything should be fixed. It's just an outdated parameter.
Влад Галышев thnku very much
Thank you!
you are a godsend
Tisijch blagodarnosti, Vlad, but where did You find that info (or how)?
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 :)
Love your tutorials.. Simple and to the point. Thanks a lot man !!
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.
You did a great job man ! I am now ready for my MongoDb interview :D
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.
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
I am learning login app from ur videos . really awesome .fan of traversy media.. best online tutor .. i wish i have tutor like u.
Very useful tutorial...Thanks for keeping information crisp and to the point. Keep it up Man!!!
:)
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
Nice tutorial. Thank you so much.
thank you for this tutorial. it helps me to navigate the NoSQL database in no time. really helpful to me
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?
I like it when the explanation is followed with a practical example. Superb video thank you !
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?
Did you get the answer?
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
when I type net start MongoDB, it gives an error. net not recognized as an internal or external command. Please help
make sure to call this command from your mongo bin directory
Two years later and this video is still valuable.
Please help:
Failed global initialization: FileNotOpen: Failed to open "I:\mongoDB\log\mongo.log"
What can I do?
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.
I am getting { Error parsing command line: unrecognised option '--rest' } error message. Any additional packages that needs to be installed on windows 10?
The --rest parameter was removed in MongoDB 3.6. So remove the --rest option from your command line.
thanks man
Excellent intro to MongoDB. I have a presentation tomorrow afternoon and this video was invaluable to me. Thanks bro.
Anyone knows how to solve this : Error parsing command line: unrecognised option '--rest' ???
recent version has some changes. --rest is not recoganised command. remove the rest and try.
remove --rest
you need to have command promp as an admin
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
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.
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
Same here, couldn't find any solution over the internet...
yeah me too..
Found the solution though
what is the solution?
REMOVE - rest (deprecated)
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.
what does creating a user do ? How would u be able to select which user u log on ?
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
Asking the real questions thx
that was a literal learning session in a short period of time. Great!
Hi,
when i tried to run the below command
"net start MongoDB"
net is throwing an error , it is not recognised
run terminal as administrator
net start MongoDB : Invalid service name, even runned as admin
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“
how did you solve this problem?
@@SNM_23745 Run it as an Administrator stackoverflow.com/questions/4661670/cannot-start-mongodb-as-a-service
This is my first lecture to MongoDB, thanks broo you make it soo simple.. lovely
How to deal with " Error parsing command line: unrecognised option '--install' " ? (running on Mac, 10.10.5)
Check out installation steps for Mac. It was different for Ubuntu
Rohit Nahata tu har time nahata hai? 😇
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 💚
--rest is not recognized, can anybody help ?
just delete this line and everything should be fixed. It's just an outdated parameter.
I did, then it says mongodb not found, even though I've installed it before.
Laiba Khan that’s really weird, I’m not sure
World needs tutors like u
what do i do? after i do net start MongoDB it gives error "The service name is invalid."
I had spelling wrong, so i get that message too.
start the command promt as administrator and then do the process again it will work.
nice!
I had to append in the former step: --serviceName "MongoDB"
even then it tells that service name is invalid
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.
You earned a Like!
Is there a GUI app for database? as we have phpmyadmin for MySQL?
There is, its available in windows, mac, and linux. Its called Robomongo
Studio 3T for MongoDB
Robo 3T
MongoDB Compass Community Edition will do the trick
maybe create a CRUD dashboard?
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
the command --rest is unrecognised. what should i do?
The --rest parameter was removed in new versions of mongodb. You can type command without this parameter
Sir , really ur 💯 💯💯 💯 great sir ,ur the real world teacher ur explanation was simply speechless
21:30 Darude-Sandstorm made a small appearance!
LMAO
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
FAIL unrecognized option '- -rest'
I was totally unaware that this kind of databases exists! This is beautiful! Simple and elegant
Thank for the tutorial
Brad Traversy is a blessing to the community! Thanks for the tutorial.
I think you have no idea how much you are helping me. Thank you so much!!!
The CLEAREST explanation I ever seen.Thank you!
Thank you so much for this great tutorial.
In 30 minutes I've been improved my resume. :)
Thanx for explaining a new concept in 30 mins
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! :)
That is the video I was looking from a long time. Thanks buddy. Stay blesses 👍👍
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?
I Am indonesian with minimum english speech, but i can understand what you're explain in every video. Thanks Brad! Jah Bless!
Awesome tutorial for MongoDB beginners.. thanks a ton, Namaste from Hyd, India
It was so crisp and clear that felt like I already know the subject !!! Thanks :-)
I love this video! It's exactly what I was looking for so long.
The is exactly the kind of tutorials we need ! fast and insightful ! Thanks !!
Top draw........
You covered quite a few commands in half an hour......
Thank you Chief !!!
You are awesome man! After watching this tutorial i am gonna take MongoDB instead of the firebase.
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
Bro - You are amazing and explained clearly as i am new to this technology. Thanks
This tutorial is very valuable!! Don't read the comments , watch the video 😁!
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 :)
Excellent Explanation! Thanks for the ease you made to get into MongoDB.
Very thankful to you sir it was very helpful to learn MONGODB basics
Truely, this is lit...
Great thanks for such a fluent explanation.
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.
It was really useful to gather a quick insight of mongo dB.
The way you explained is perfect..!! thank you so much for making such video
Oh man! Thanks a ton. Was never able to install mongodb without errors.
This time... it was smooth. Thanks a lot.
Can anyone clear me why --httpinterface warning was showing? Does it affect any part of service?
I am new to mongo db and this video made me feel very comfortable! Thanks for the helpful video +1
Excellent coverage in short time
Many thanks, yours was my intro to MongoDB.
Clearly explained!! I'm excited to go through more of your tutorials!
Thanks for the video.
remove --rest in the first step if you are using mongodb version 3.6 or above.
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