I am installing mongoDb 4.0 on windows 10, and I followed the installation guide. The mongodb server is running as a service. When I open Command Prompt and type: mongod, I got this message:
2018-07-13T13:47:41.173+0200 I NETWORK [initandlisten] waiting for connections on port 27017
When I type mongo, I get this error:
MongoDB shell version v4.0.0 connecting to: mongodb://127.0.0.1:27017 2018-07-13T13:48:04.245+0200 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: NetworkTimeout: Error connecting to 127.0.0.1:27017 :: caused by :: Socket operation timed out : connect@src/mongo/shell/mongo.js:251:13 @(connect):1:6 exception: connect failed
I tried to reinstall several times, but still the same.