1

How can I change the storage engine of MongoDB permanently so that I don't have to run mongod without having to specify the storage engine every time? I am using shell version 3.2.7 on Windows 7 32-bit. I got an error that said:

28663 Cannot start server. The default storage engine 'wiredTiger' is not available with this build of mongod. Please specify a different storage engine explicitly, e.g. --storageEngine=mmapv1., terminating.

Also does anyone know how to cleanly shutdown the server when I am done working? I use Ctrl+C but it causes an error, then I have to empty the data folder to get the process to start again.

  • One problem per question please. – Andriy M Jun 23 '16 at 5:12
0

You can set that in the storage.config setting within your YAML configuration file.

Example:

storage:
  dbPath: d:\data\db
  engine: mmapv1

If you're not already starting your MongoDB service using a configuration file, see here for the details on how do to that for Windows.

  • Worked like a charm. – Courtney Jun 25 '16 at 17:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.