Error connecting to MongoDB: unexpected token string literal

Hello i have some questioning about mongodb shell connect

When I was an opened shell and I was connected to
mongo “mongodb://,,” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics

this above run command and still getting an error please say me solution

Hello @Raj_Parmar,

You are already in mongo shell environment (you have used the mongo --nodb command). To connect to a MongoDB instance follow the instructions from Opening New Connections from within the shell you are in.

1 Like