Set mongodb configuration path using mongodb.config in Windows Set mongodb configuration path using mongodb.config in Windows mongodb mongodb

Set mongodb configuration path using mongodb.config in Windows


It works for me, using :

dbpath=T:\data\db

My mongodb version is also 2.6.3

By the way, my config file is named "mongod.cfg", but yours is "mongodb.config". Maybe this counts.

Anyway, try to follow the tutorial:http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/ It works


when you write the config file with "" i.e double quotes you should use \\ instead of \ for windows... Otherwise you will find that there is "unknown escape character" in this line of the config file

- storage:   -   dbPath:"E:\\Do\\mongodb"