MongoDB default password & login

NoSQL document database. Out-of-the-box has NO authentication; first user is created via the localhost exception or db.createUser().

Use these credentials for the very first login to MongoDB only. The full vendor documentation linked below explains how to rotate them and harden the install.

Default username
Set during install / first-run wizard
Default password
Set during install / first-run wizard
Default port
27017(MongoDB)
Default admin URL
mongodb://localhost:27017

Notes & recovery

Enable auth with: --auth flag or security.authorization: enabled in mongod.conf. MongoDB Atlas uses Atlas-managed users.

Official documentation →

Change the default immediately

Anyone with internet access can try the published default on MongoDB. Set a strong, unique password the moment you finish first-time setup, ideally before exposing the service to your LAN.

Related software

PROTECT YOUR PRIVACY

Your IP Address Is Exposed Right Now

Every website you visit can see your real IP address and location. NordVPN encrypts your traffic and hides your identity with military-grade encryption. Stay anonymous online.

Get NordVPN — 73% Off30-day money-back guarantee
SECURITY TIP

Using default passwords? Protect your network with NordVPN encryption.