Error trying to connect

this what i pasted and get the error

both connection strings are giving me the error

MongoDB Enterprise > mongo “mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/test?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics
uncaught exception: SyntaxError: unexpected token: string literal :
@(shell):1:6
MongoDB Enterprise >

what can i do to correct this^
Normand

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

thx

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

~ Shubham