How to remove mongodb and the related files completely from the system? - mongodb

I have started installing mongoDB, got struck like anything.
I can understand the mongoDB is not running even though it shows like mongo auto and a log file. I have deleted almost all the folders and i ran almost all the commands i have seen on net.
I need the commands which removes the mongodb completely from my system.I cannot understand what's happening with the mongodb.
Finally I have decided to remove it completely(not even a single instance of mongo).
provide me the best commands which might help me.

Perhaps this might help for Mongo 3.0
https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/
and for Mongo 2.6
https://docs.mongodb.org/v2.6/tutorial/install-mongodb-on-ubuntu/
At the bottom of the page are instructions to remove all files.

Related

mongodb keeps generated files under .snapshot folder

I am new to Mongodb. I'm running a Mongodb 3.6 services on Openshift.
I found that it keeps generated something looks like backup in the folder /var/lib/mongodb/data/.snapshot.
It's not small in size. But, I can't remove it. Does anyone have any idea?
It turns out that it's due to the snapshot created by NetApp. We need to re-configure the snapshot policy.

Mongodb on Windows - How to delete records

I'm trying to find a solution for deleting a selection of records from my collection in MongoDB Compass for Windows.
Apparently Mongo Shell no longer exists for windows and I need to somehow do it through this Electron app?
I can do it through node but that's going to get old real fast.
Can someone confirm this and point me in the right direction?
As you will find, there is a dustbin button on the side of the document representation in Compass.
The image shows Compass v4.0.1.
Maybe you need to upgrade?
To help anyone else, after installing "Community Server" I added "C:\Program Files\MongoDB\Server\4.0\bin" to my PATH environment var and mow I can do 'mongo' from cmd.exe

Why is RockMongo not showing my databases?

I followed all the instructions for installing mongodb and RockMongo from here:
http://www.hackthesec.co.in/2016/05/how-to-install-mongodb-with-rockmongo.html
Instead of showing the RockMongo login/password screen, I am just getting a display of the files inside of my /var/www/html/rockmongo folder. I added a test database in my mongoshell but it's not being displayed and also from what I googled I don't think RockMongo is supposed to look like this. I am not sure what I am missing. Any help is appreciated.

My Meteor projects skip MongoDB-startup

Three weeks ago my Meteor projects worked fine, but today I noticed that all my Meteor projects skip the 'start-MongoDB' step, or at least it seems that way. All my projects that rely on one or more collections now get stuck on the 'starting your app' step, while new projects start normally (probably because no MongoDB doesn't cause problems for them). Note: I'm having these problems while running applications locally on my laptop.
Most posts that I can find about apps freezing on 'starting your app' mention that the app can't connect MongoDB, which relates to my case, because it is never started, but I don't know how to tell Meteor it should start up MongoDB first before running any of my apps.
Any tips on this matter?
Have you set the environment variable MONGO_URL? If so, meteor (aka meteor run) will not start MongoDB.
Thx for the tips guys, I fixed it, but the root of the problem was kind of far-fetched. The METEOR_LOG=debug option, as suggested by #aedm, helped me figure out what was wrong though.
One of my older applications posted the error message Meteor 1.2.0.2 - Couldn't run tasklist.exe on Windows 10, and when searching on that error message someone suggested that something might be wrong with my environment variables. Apparently when installing some new software a couple of days ago I created a new 'path' variable, rather than editing the old one, which overwrote the original 'path' variable, which included something essential for Meteor. I deleted the new 'path' variable, and added its contents to the old one, and now everything works and Mongo starts as it should when I run my apps.

How do I run mongo-express (without authentication)?

According to the official documentation for the web-based MongoDB admin interface mongo-express, one starts the tool using
cd YOUR_PATH/node_modules/mongo-express/ && node app.js
However, this does not seem to work. If I execute it on my system, I only get the "Usage" info console output. No error output. The same is true when using whatever combination of username / password / database parameters.
The mongod process works perfectly. Even the alternative tool mongomate (read-only) works fine on my system. I have created a simple test database, no authentication. All config settings on default.
Am I supposed to configure anything before using the application? I remember very clearly that I managed to get this to work very easily on another system some time ago, but now I just don't manage to get it started. Googling for "mongo-express" doesn't yield any helpful results either.
mongod db version is v3.2.0.
mongo-express version is 0.27.6.
OK, after reinstallation with the current version it worked again.
Current Version of mongo-express version is now 0.28.8.
Further investigation: After an experimental downgrade to the original version 0.27.6, it stopped working again, meaning that there was something wrong with that release. Upgrading to a newer version solved the issue.