Installing MongoDB on Windows 7

I was trying to install MongoDB on Windows 7 recently and was having some trouble getting it to work. It doesn’t help that the installer fails silently, not telling you why it won’t install. All you know is that you ran the install command and there’s no MongoDB service installed. Anyway, here are the two gotcha’s I ran into:

  1. You need to run the command prompt as administrator.
  2. You need to have the full path to the exe when you run the install command, e.g.:
    c:\mongodb-1.4.0\bin\mongod.exe –install

Runs like a champ after that.

,

4 Responses to “Installing MongoDB on Windows 7”

  1. Duma October 25, 2010 at 5:19 am #

    Are you able to get pagination to work with codeigniter and mongoDB, been trying in vain to get it right, could you point me in the right direction.

    • Scott October 25, 2010 at 9:31 am #

      Unfortunately I won’t be much help here, I haven’t worked with either codeigniter or mongoDB in well over 6 months, and I haven’t used them together ever. Keep searching though, I’m sure there’s someone out there that has.

  2. Debjit November 9, 2010 at 1:47 pm #

    I get a “Error connecting to the Service Control Manager: Access is denied. (5)” whenever i try to install mongodb as a service on my 32 bit windows 7