Maybe I’m in way over my head on this, but I harmlessly thought I would poke around with MongoDB and see what it could do with some JSON data I’ve been poking at… Except I can’t connect Compass to the database instance on Atlas.
I’ve been through the documentation for both Compass and Atlas related to connecting one to the other. Maybe I’m slow. I’ve read through the postings I could find on this site. No help. The problem is SO simple, I’m embarrassed to have to ask about it.
Here’ what I got.
- A database instance called - test
- A username - email@example.com
- A password - ducks4Sale
All of that produces the following connection string:
Seems straightforward… BUT
The Organization Access Manager tells me that the username and email address should be the same. So, is " mongodb+srv://bob: " in the connection string correct? Should it be " mongodb+srv://firstname.lastname@example.org: " ?
I’m unclear about the format of the password in the connection string. Is it or ducks4Sale or <>?
I’ve tried just about every combination of the above, so started checking other things.
My ISP is Xfinity. We use their stock model and router. When connecting to the DB instance, Atlas detected my IP address without a problem. I’ve done nothing else with this setting. I can’t find that I should be using a particular port on the router.
The user, email@example.com, has admin privileges.
There is something called an admin database for authentication, right? Do I need to do something there? I doesn’t seem like I should.
As an FYI, I’m running Ubuntu 18.04, the Bionic Beaver, if that makes a difference.
All help will be appreciated. I’d give out chocolate chip cookies, but that covid thing… well, you know.