How to Start and Connect to MongoDB environment.



---To Start MongoDB service run below command in command prompt with Admin privileges
"C:\Program Files\MongoDB\Server\4.0\bin\mongod.exe"
 ---To connect to the MongoDB environment run below command
n command prompt with Admin privileges
"C:\Program Files\MongoDB\Server\4.0\bin\mongo.exe"

If you see below first i ran the command prompt with Administrator account but i have installed mongodb with 'Hi' account . So first i changed the user from Administrator account to Hi account by using CD



Going inside of mongodb, open another command prompt and run the below command


Comments

Popular posts from this blog

System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out

Pre login Handshake or Connection Timeout Period

Transparent Data Encryption(TDE) with Master Key and Certificate in SQL Server