Forgot to close shut down mongo and now its not working

mongodb

#1

i have tried mongo --repair, mongodump --repair, db.repairDatabase() .

it was working perfectly yesterday just that I forgot to shut it down .If anyone could please help that would be great

i did sudo mongo --repair and that command worked but when i tried the command ‘mongo’ said connection failed


#2

I’m having this problem too.