DEV Community

Dendi Handian
Dendi Handian

Posted on • Edited on

MongoDB on Laragon

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.

laragon mongodb directory

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.

mongodb menu on laragon dashboard

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:

robo3t connection

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:

mongosh test

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)

Collapse
 
muhammad_asif_18dad470961 profile image
Muhammad Asif

Monogodb download link not working!

Collapse
 
dendihandian profile image
Dendi Handian • Edited

well the mongodb website changed, I have updated the link to mongodb.com/try/download/community

Collapse
 
muhammad_asif_18dad470961 profile image
Muhammad Asif

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 ❤️

Thread Thread
 
dendihandian profile image
Dendi Handian

happy to see you solved it