Install a local MongoDB Database on macOS
HTML-код
- Опубликовано: 6 сен 2024
- In this video we look at how easy it is to get a MongoDB server running locally on macOS. We step through installation, configuration and using basic CRUD operations to interact with the database.
Prisma now supports document databases with the new MongoDB connector. Check out the docs to get started: www.prisma.io/...
Learn more about Prisma:
◭ Website: www.prisma.io
◭ Docs: www.prisma.io/...
◭ Quickstart: www.prisma.io/...
mongod --config /usr/local/etc/mongod.conf
zsh: command not found: mongod
what i do im stuck.
same problem here
Thanks so much for this. It really helped. Nobody on youtube has provided a simple video showing how to get mongodb on mac until you came around!
Thank you for the feedback, we're very glad to hear this video was helpful! 💚
Agree.
Thanks for zooming in, so good to read on mobile
when I type brew -v after installing it says command not found: brew
hi when I run the commando mongod --config /usr/local/etc/mongod.conf I get an error saying zsh: killed mongod --config /usr/local/etc/mongod.conf
what am I doing wrong? Thank u
I was struggling with installing and running mongodb using the terminal on my mac until your video. It helped a lot, thank you 🤓
There is no need to make /Data/db directory?
@ 2:18 - i am running an M1 + Big Sur v^11.5
instead of `mongod --config /usr/local/etc/mongod.conf` i had to use `mongod --config /opt/homebrew/etc/mongod.conf`
easy problem to overlook in the post installation message after installing mongodb-community with brew
@@Firstname_ i went through it with this this week + basically it’s incompatible right now. you can maybe try the rosetta interpreter, but if you have another OS, i would init mongo on there and then just access it through your connection string in your server file. everything seems to work fine after i did that, even though i’m still doing the majority of development on my M1 macbook. you just have to view the db through the mongo site.
couchdb initialized extremely easily on my M1 macbook though, but it doesn’t suit my needs for the app i’m building.
@@muffinmuncher hi, i use m1 macbook too, but after brew install mongodb i got error like this
"Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
To rerun under ARM use:
arch -arm64 brew install ...
To install under x86_64, install Homebrew into /usr/local."
do u know how to fix that sir? thank you
Hello,
Are you able to run the mongod on M1 without rosetta ?
@@rifqiraihanlazuardi9222 I have installed the x86 version of homebrew into /usr/local/ and have given that homebrew an alias "ibrew".
Thank you so much, very informative. Quick question, when I run I don't get "test", is that normal?
same here
Awesome video! Anyone watching this vid take a peak at the docs after or as you follow the vid instructions.
After typing 'mongo' in the new Terminal , it shows "zsh: command not found: mongo". Why is it and how to resolve this?
The legacy mongo shell is no longer included in server packages as of MongoDB 6.0. mongo has been superseded by the new MongoDB Shell ( mongosh ) .
I only have a macbook from 2012 will this work? I need it for my class and I cannot afford a brand new laptop currently
I can use mongosh and is working properly, but when I use mongod and then mongo I get this: " mongo
zsh: command not found: mongo", what is the difference in using mongosh or mongo? I have a Mac m1
Thank you, I have a Mac and I was able to follow along...
Hi,
I have followed the same instructions mentioned in the mongodb official docs for mac m1 chip but when i run `brew services list`, i get the error:
brew services list
19968
Name Status User File
mongodb-community@4.4 error user
Could you please help here. Thanks in advance
mongod --config /usr/local/etc/mongod.conf return my name back so i've been unable to connect for days what could have happened ?
you did very simple, it took a month to do this
Super helpful and clear
Thank you guys. Much appreciated.
Glad you found it useful!
love the tutorial :) Thank you very much for your kindly insight tutorial.
thank you so much man
😊
The best explanation ! Thank you!
easy to follow and it works! ty x infinity!
고마워 넌 신이야.
Very helpful, thank you!
You move a little fast but I guess I can just go back and play it. Thanks for the tutorial.
Thank you!! it helped me !!!
My mongod --config /usr/local/etc/mongod.conf produces nothing. Mongod command not found. Any ideas? Thanks
If you need to have mongodb-community@4.4 first in your PATH, run in your terminal (mac)
echo 'export PATH="/usr/local/opt/mongodb-community@4.4/bin:$PATH"' >> ~/.zshrc
You need to create the config file first. Ref: docs.mongodb.com/manual/reference/configuration-options/
mongod.conf
Awesome
bash Mongod command not found ?
Hey Yuvraj, thanks a lot for your comment! If you have trouble running some of the commands from this video, it's best to ask for help on GitHub so that our support team can help you: github.com/prisma/prisma/discussions
Ideally, you can provide a bit more information about your error (e.g. what commands you are running exactly, what your environment looks like and what the error message looks like).
good job man.
Thank you..so much..
thank you
You're welcome!
macbook air 2017 High Sierra version 10.13.6 which mongodb version will support?? Community version not supporting.. pls anyone help to install 🙏🏻
Hi Raj, thank you for reaching out, however, the MongoDB Support team might help best in this case. We recommend checking this MongoDB document on the requirements for installation (on the left-hand side you can choose the version of MongoDB you're looking to install) -> docs.mongodb.com/manual/installation/
thanks man. save me
haha I thought that you work for supabase :-)
I got the same issue. I ran "echo 'export PATH="/usr/local/opt/mongodb-community@4.4/bin:$PATH"' >> ~/.zshrc" then
IT says mongo command not found :(
When I try mongod -config /use/local/etc/mongod.config
I get an error saying no such file or directory exists.