Error trying to connect

this what i pasted and get the error

both connection strings are giving me the error

MongoDB Enterprise > mongo “mongodb://,,” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics
uncaught exception: SyntaxError: unexpected token: string literal :
MongoDB Enterprise >

what can i do to correct this^

You are already connected to mongodb as your prompt shows
When you try to run the command again from mongo prompt you will get syntax error

Run mongo/mongod commands from os prompt

1 Like

Hi @Normand_Rioux,

In addition to @Ramachandra_37567,

You can exit out of the mongo shell by running this command - exit.

got it to work


I’m glad your issue got resolved. Please feel free to get back to us if you face any other issues.

~ Shubham