I have installed mongodb version 4.2.3 but I anycodings_npm am unable to connect my cloned project. anycodings_npm showing below error Show
But I am able to connect database with my anycodings_npm local project and also checked by performing anycodings_npm transactions. mongo commmand output shown anycodings_npm below
My mongodb connection code is below
I have also tried by increasing timeout but anycodings_npm no resolution. 32 Answers 1 : of MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoNetworkError: connection timed out]I was initially facing this issue maybe anycodings_npm due to the slow system. I struggled with anycodings_npm this issue full day long. But my anycodings_npm resolved when I restarted my system. So anycodings_npm finally restarting the system as well as anycodings_npm the mongod service resolved my issue. 0 2022-09-17T08:49:24+00:00 2022-09-17T08:49:24+00:00Answer Link mRahman description¶Got this error when
solution¶Start mongod and specify the database path |