Can't connect to my cluster

Hi,

From the mongo shell I run the command copied and pasted from Atlas to connect to my cluster. I have included the password at the end of the command however I am getting this error message:
[js] SyntaxError: missing ; before statement @(shell):1:6
Why can I not connect?

Please provide more details or with the error screeshot?

Hi Philip,

It would be great if you could provide more details of the error such as screenshot, version of mongo shell. I recommend you to install the enterprise version 3.6 since I solved my connection problem by doing so.

I think you’re already connected, exit using quit() and run again your command

1 Like

Hi @Philip_43166,

Please exit the Mongo shell using exit or quit().
Then type the command from your local system.

Kanika