Unable to connect MongoDB Atlas

Hi Peter,

I can see that you are able to access the Mongo Shell. Please describe the problem that you are facing.


Hi, Kanika:

I copied the command line for connecting MongoDB Atlas with MongoDB Server v3.6 and later (my version is v4.0.5), but it not run in my Mongo Shell: E Query [js] SyntaxError: missing; before statement @(shell):1:clock6:

Thank you in advance for your help!

Hi Peter_96837,

You are already in Mongo Shell, so if you want to connect again to another cluster, you need to quit and then type mongo connection command again.

If you see:

  MongoDB Enterprise >  _

It means you are in the Mongo Shell already.



Thanks you very much!

Best regards,

Peter Gong

BI Developer

Information Technology Department