Answers for "mongo [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed : connect@src/mongo/shell/mongo.js:257:13 @(connect):1:6 exception: connect failed"

0

mongodb Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException

sudo rm /var/lib/mongodb/mongod.lock
sudo mongod --dbpath /var/lib/mongodb/ --repair
sudo mongod --dbpath /var/lib/mongodb/ --journal
Posted by: Guest on August-08-2021

Code answers related to "mongo [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed : connect@src/mongo/shell/mongo.js:257:13 @(connect):1:6 exception: connect failed"

Browse Popular Code Answers by Language