After mongoDB has configured the environment variables, what is the reason why I cannot connect using the mongo command?

this is an error message:
clipboard.png

:

clipboard.png

:

clipboard.png

must be used in order to connect successfully. It is useless to match environment variables. What is the reason for this?

mongod.exe --dbpath "e:\mongoDB\data"
Mar.08,2022

see if the MongoDB service has been started. When this problem is found, the Windows service registers successfully, but cannot be started, and MongoDB needs to be started manually each time. Now that you have environment variables, the development phase can write the command to start MongoDB as a batch

Menu