When I'm trying to install MongoDB Community edition on windows 8.1, I'm getting below error.
I tried most of the available solution from the internet but none of them worked.
When I'm trying to install MongoDB Community edition on windows 8.1, I'm getting below error.
I tried most of the available solution from the internet but none of them worked.
I resolved this issue by installing Microsoft Visual C++ Redistributable 2019.
You can download it from the link below.
https://www.itechtics.com/microsoft-visual-c-redistributable-versions-direct-download-links/
In my case, I was changing the path in which the data and log folders were stored and the installer was not intelligent enough to auto-create the target paths. So after manually creating each set of folders and restarting the installation, version 4.0.10 installed without error.
I grappled with the same issue for a while until I realized that my problem is the installation location. You are most likely to run into this error if you install MongoDb in this folder: C:\MongoDB
. I resolved it by installing in the default folder which is C:\Program Files\MongoDB\Server\4.0\bin
I had the same problem!
Probably you're trying to install MongoDB in a custom folder.(for ex. C:\mongodb)
Don't do that!
Let the setup program install mongoDB on the default Program Path.(Usual path -> C:\Program Files\MongoDB\Server\4.2
)
After you've installed it, you can copy the content of these folder and past it to your intended custom folder. (In this example -> C:\mongodb
)
After you've done this you shouldn't get any more errors when you start mongo on a command shell.
Ten hours of work, nothing from above work for me except the following:
C:\mongodb\bin
as administrator and input mongod
. You'll see that it was interrupted.mongod --remove
.mongod --directoryperdb --dbpath C:\mongodb\data\db --logpath C:\mongodb\log\mongo.log --install
net start MongoDB
to verify it works correctlyGoto "C:\mongodb\bin" and Open "mongod.cfg", Then Search for :#mp
Just remove the text :#mp from the file (you will find :#mp where the content of the file ends).
Now Run : net start mongodb. This should work now.
I had been struggling for the same, a whole day finally came up with this solution. I have window 8.1...
...initialText;path
wherepath
is the where your MongoDB was installed with thebin
folder in the same. By default itsC:\Program Files\MongoDB\Server\4.2(your version)\bin
edit like this initialText;C:\Program Files\MongoDB\Server\4.2\bin
click ok close.
Try running mongod
in cmd prompt it will show an error and will close.
Error will say to create a folder C:\data\db
manually. Do it.
You're all set try running 'mongod' again.
You're welcome!
Look here, this is the right solution. In windows, open the service program and look at the properties of the mongodb service (for me it is "E:\mongodb\bin\mongod.exe --config "E:\mongodb\bin\mongod.cfg" -- Service"), copy this attribute to cmd and execute it manually. You will find that it is reporting an error. The error message is that "mp" is not recognized. So we only need to comment out the "mp" in the mongod.cfg file. If you don't choose a custom installation path, there is no "mp" in mongod.cfg, which is a weird bug!
Go to the bin folder of the mongodb and open a command prompt or git bash there. Enter the command: ./mongod --repair
This will run and you will get to know the exact error. In my case: MongoDb is fetching db folder in F:\data\db but my setting is F:\mongodb\data\db
Error which I got while installing mongodb in custom folder So I changed the path of db with a command:
./mongod --dbpath F:\mongodb\data\db
If above command didn't work, use double backslashes
./mongod --dbpath F:\\mongodb\\data\\db
And BRAVO!!!
cd. /path
to the folder in which you have downloaded the setup of MongoDB.if you installing in the lower version of Windows-10 then you need to install these file before Installing MongoDB 4.2.6.
after this installation
Install successfully
Installing mongodb from the Windows command prompt/interpreter (cmd.exe) using msiexec.exe worked for me.
msiexec.exe /l*v mdbinstall.log /qb /i mongodb-windows-x86_64-4.4.1-signed.msi ^
ADDLOCAL="ServerService,Client" ^
SHOULD_INSTALL_COMPASS="0"
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows-unattended/#procedure
I had the same problem so I created a repo C:\mongodb , when I did the installation the same window appeared again and I just clicked on "ignore", I don't know how but it worked for me everything is installed :) .
I faced the same issue. After ignoring this warning, and trying to start the server, got a specific error message related to VCRUNTIME140_1.dll
. I found sufficient privilege
message misleading! To fix the issue related to VCRUNTIME140_1.dll
, found this video very useful - https://www.youtube.com/watch?v=wGLK26Kk9bE
Below are the steps mentioned in that video -
C:\Windows\System32
for 32 bit and C:\Windows\SysWOW64
for 64 bitAfter copying the DLL, issue got resolved.
I have temporarily solved this issue by downgrading to a previous version of MongoDB: 3.6.13.