Browse By

Tag Archives: mongodb

mongo-db-logo

How to drop all MongoDB databases

The title of the article is pretty much self-explanatory. So the easiest way I found to drop all your MongoDB databases from mongo CLI is to run this simple command which actually what it does is it goes through the result of getDBNames function and

Mongodb

MongoDB – Address already in use for socket: 0.0.0.0:27017

If you are like me who today tried to start mongod and got the error below [initandlisten] ERROR: listen(): bind() failed errno:48 Address already in use for socket: 0.0.0.0:27017 [initandlisten] ERROR: addr already in use [initandlisten] now exiting Then what have to do instead of restarting