Computer >> Computer tutorials >  >> Programming >> MongoDB

How to run MongoDB shell using mongos command?


In order to launch the MongoDB shell, you need to use mongo command. Following is the syntax −

>mongo

First reach the MongoDB bin directory from command prompt as in the below screenshot −

How to run MongoDB shell using mongos command?


Here is the command to launch the mongo shell as in the below screenshot −

How to run MongoDB shell using mongos command?


This will produce the following output −

How to run MongoDB shell using mongos command?