Connecting to Your Sandbox Cluster from the mongo Shell

Hi,

  1. I’m able to connect to my atlas cluster from mongo shell by providing ‘test’ in the connection string. But I’m not sure whether i have connected to the correct cluster since i don’t find ‘sandbox’ in the prompt as Shown

  2. What does the ‘test’ in the connection string means
    mongo “mongodb+srv://sandbox-xxxxx.mongodb.net/test” --username m001-student --password m001-mongodb-basics.
    Can you please clarify what is ‘test’ here ?
    Atlas says its a DB name based on the cluster created, but we didn’t create any DB with name ‘test’ till now in the course.

Hi @Jayanth_Babu_Mahavishnu,

It’s not a problem. I think something changed in the version and that’s why you are not seeing your clusters name in the prompt.

It’s the name of the database that connections will use by default and you will be connected to this database.

It’s the default database in MongoDB. By default it does not contain any data.

Hope it helps!

~ Shubham