I am not able to start MongoDB ON WINDOWS 10 - mongodb

Mongod is not starting on windows 10 it shows 'access control is not enabled for the database. Read and write access to data and configuration is unrestr 10.

Mongo is started and is running. This message is simply a notice, not an error. It says that your Mongo database is insecure because anyone is able to read and write. This is fine for your development purposes on your computer, but you should change the settings if you use Mongo for a production, customer-facing website.

Related

How do you convert mongod to mongo service?

I have been running MongoDB on two Windows 10 PCs. However, one has mongo always running it seems where I only need to open command prompt and type mongo. This gives me access to the db on PC #1.
However, on PC #2, I must open command prompt and type mongod. Then I have to open a second command prompt to type in mongo, then I get access to the db on PC #2.
After doing this for about a year, I find I want to just want both PCs to work like PC #1, where I just type in mongo and not mongodb and only have to use one command prompt.
I checked online but there's nothing I found straightforward to accomplish this specifically.
Does anybody know the answer?
If in PC#2, your MongoDB version is < 4.0, then you can't do anything i.e., you have to continue with mongod to start Mongo as you do now.
But if your MongoDB version is >= 4.0 or you want to upgrade from lower version of MongoDB, you can follow the below steps.
Take backup of all databases with mongodump. If it is large volume data, then go through this.
Uninstall your MongoDB using Windows Uninstall Program features.
Reinstall MongoDB using the link.
While installing, ensure you select 'MongoDB Service' feature.
Start the MongoDB now in PC#2 as you do in PC#1.
Restore the old databases with mongorestore.

can't connect mongoDB to localhost

hey there I don't know why the server refuse to connect to mongo local host and the same problem also for robomongo =[. I was looking for the same error in this site and others but no answer is relevant...I thought it might happened because robomongo is also running and I uninstalled it but...it didn't solve it...I'm using windows 10. tried to do from mongo's directory mongod.exe and it didn't work than mongo.exe but also didn't work...can someone help me?
run the MongoDB you need to open another command prompt and use the following command. “C:\Experiments\MongoDB\MongoDbServer\bin>mongo”. It will show the version of MongoDb and connected database, By default it is test. Other window will show one connection is open.
Read this Article

Why does MongoDB require launching mongod.exe before connecting to DB?

MySQL, for example, does not require this. Why MongoDB does?
The problem:
I'm writing an app (for PC) in Java that uses MongoDB. I downloaded a driver (3rd version, the newest) and everything is fine...
...except for the need to launch mongod.exe to actually use a database.
In terms of app, it is extremely user-unfriendly. So in order to use my app, he will need to launch mongod.exe first, and even if it's done automatically by my app (via using runtime), user will still have 2 windows.
Moreover, instead of seeing just my app icon on taskbar.
How it should be:
User will see my app icon and mongod icon:
How it is:
Is there any solution to that? If not, can somebody explain why do we need to start mongod at all? It's very poor design from MongoDB devs, for example when using MySQL your Java app can connect to databases directly, without running any other software that is displayed on taskbar.
If apps that use MongoDB will require from user to launch mongod beforehand, or even if they do it themselves but there are 2 icons on the taskbar and that large black window of mongod running, it would be totally unfriendly to user so there would be no sense to use Mongo.
Mongod is mongoDB server application! without running it there's nothing back there listening to your requests!
Regarding to MySQL, you probably set it as a windows service and windows automatically runs mysqld.exe at windows start up! otherwise you would need to run mysqld.exe too!

MongoDB getting error while setting up at WAMP localhost for window

I am setting up MongoDB on localhost WAMP,
when i hit the port number http://127.0.0.1:28017 getting following error:
It looks like you are trying to access MongoDB over HTTP on the native driver port.
Please let me know how can i view database like phpmyadmin for MongoDB.
MongoDB does not offer by default a Webinterface for Administration, so you have to use additional Software. I know that Adminer also supports MongoDB.
Otherwise please read this Section in the MongoDB Docs (which are really great for learning MongoDB. I haven't tried all of them, but i think Adminer will do the Jobs. The MongoDB Shell is also great.
You can use cPanel too for this. cPanel server , because it is just another linux server.

ideal vm setup for meteor with shared folder

situation
Hello, I run arch Linux for which there is no meteor package and have an Ubuntu server run within virtualbox for web development. There is a shared folder I mount through database. hich means I can code in to the active environment.
However, like many others, I have a problem with mongodb starting up, specifically the exit code 100.
tracing the problem:
I created the /data/DB directory
gave access rights to my user
ran mongod on its own with no problems
Still I have the issue though.
Question
Where is the configuration file for mongodb which is installed with meteor so I can move it and do I need to create rights for a 'mongodb' user?
Question
What would be the ideal virtual machine for running a meteor development environment in the above set up? Having to create the data directory in the first place tells me Ubuntu server isn't ideal. some extra documentation available to answer this second question appearing on the meteor website would be beautiful
MongoDB does not work correctly on virtualbox shared folders. By default, meteor creates a mongo database in your project's directory, however you can override this behavior with the MONGO_URL environment variable. If you set this variable, meteor will not try to start mongo and will instead connect directly to the mongo endpoint you specify. This allows you to setup mongo however you like (eg using the Ubuntu mongodb package), with data somewhere not in the shared folder.