UPDATE: the mongodb website was changed, and the previous link doesn't work anymore. So, you may want to install the community edition mongodb without moving to mongodb installation directory.
Installing MongoDB Server
Download The Community Server Mongodb
Go to https://www.mongodb.com/try/download/community, find the latest zip available and download it.
Extract and Move To Laragon MongoDB Directory
Extract the zip file, it will result a single folder with the name of the version downloaded. Now just move the folder to C:\laragon\bin\mongodb
or create the mongodb
there first if it's not availble.
Run the MongoDB Server
Open the Laragon Dashboard, now the mongodb menu will available. You can run the server and stop it later from here.
GUI Client: Robo 3T (Robomongo)
The lightest client GUI available for MongoDB is robomongo and somehow it renamed to Robo 3T now. You can download it from https://robomongo.org and install it like a normal software installation. Once you done installed it, you can test and create connection the server like this:
CLI Client: MongoDB Shell (Mongosh)
If you prefer to work with terminal or shell, you can use MongoDB Shell and the windows installer is availble at https://www.mongodb.com/try/download/shell. Installing it will add the PATH for the command automatically. Here is when typed mongosh
and ENTER in command prompt:
If the PATH isn't added automatically, then add it manually as instructed here https://docs.mongodb.com/mongodb-shell/install/#add-the-mongosh-binary-to-your-path-environment-variable
Top comments (4)
Monogodb download link not working!
well the mongodb website changed, I have updated the link to mongodb.com/try/download/community
Thanks @dendihandian it worked!
However in new version of mongo
storage.journal.enabled
option is no longer supported so it was throwing exception in laragon:Service MongoDB can not start. Reason:
Unrecognized option: storage.journal.enabled
try
--help• for more information
I solved it by disabling this option under
D:\laragon\bin\mongodb\mongodb-win32-x86_64-windows-8.0.4\mongod.conf
i commented these two lines
# journal:
# enabled: false
Its working great ❤️
happy to see you solved it