How to connect to managed MongoDB, and lock it down
Click View connection details to copy the server, port, username, password and a ready-made connection string, and download the CA certificate if your client needs it. Then add your servers under Trusted Sources: with none listed, any address can connect.
Applies to: managed MongoDB.
Connection details
- Open your database service and click View connection details.
- Copy the
Host, Port, Database, Username and Password, or the Connection string. - Click Download CA certificate if your client asks for one.
- MongoDB: mongosh with the connection string, TLS on.
Lock it down with Trusted Sources
- Open Trusted Sources.
- Enter your server’s IPv4 address or range and click Allow address. Changes apply within a minute.
Removing the last allowed address opens the database to every address again.
New password
Regenerate password creates a new secure password and shows it in Connection details. Update your applications.
Your data
Keep your own exports of anything important, and export before cancelling: the cluster is deleted with the service.