Got "Access is denied" when I tried to install 64-bit mongodb in Windows server 2008

Diego Cheng picture Diego Cheng · Nov 4, 2010 · Viewed 20.3k times · Source

All I did is to run below script: D:\Tools\MongoDb\bin\mongod.exe --dbpath D:\MongoDb\data\

Then I got exception: Error connecting to the service Control Manager: Access is denied. (5)

I was using administrator account to operate this, I already created folders related to the script.

And I didn't experience issue like this when I installed 32-bit mongodb in 32-bit Windows Server 2003.

I appreciate any help about this!

Answer

Woot4Moo picture Woot4Moo · Nov 4, 2010

You need to install it from the command prompt that you have opened with the Run as Administrator option