I was able to connect to Atlas cluster from both Compass and Mongo Shell.
I ran the following command, which connects me to test database: mongo "mongodb+srv://cluster0-jxeqq.mongodb.net/test" --username m001-student -password m001-mongodb-basics
However, I cannot see any database named test in compass. Is it possible to connect to a database that does not exist yet, or am I missing something?
Test is a default database and by default it’s empty and that’s why you are not seeing it listed in Compass.
In theory, you can connect to a non-existent database by specifying it’s name in the connection string. But as soon as you insert data into it, an actual database and collection will get created. Until then it acts like a place holder.