MongoDB YAML "Unrecognized option: security" MongoDB YAML "Unrecognized option: security" mongodb mongodb

MongoDB YAML "Unrecognized option: security"


Can't speak for your exact config, but Yaml requires colon+space to separate the keys and values, otherwise you'll get parse errors;

security:    authorization: enabled    authenticationMechanisms: MONGODB-CRstorage:   dbPath: F:\MongoData


Can you ensure there is a space after ":" for the key-value pair lines and also enclose the string values like dbPath value in quotes.


The error:

Unrecognized option: security.authenticationMechanisms

is because authenticationMechanisms is not part of the "security" configuration.

As per the documentation: http://docs.mongodb.org/manual/reference/configuration-options/#security

However, authenticationMechanisms is an option for "setParameter", as per this documentation:

http://docs.mongodb.org/manual/reference/parameters/#param.authenticationMechanisms

I find the documentation convoluted and confusing, but I've not found anything to contradict this, yet.

So, given the above, I think you should be looking at the following:

security:   authorization: enabledsetParameter:   authenticationMechanisms: MONGODB-CR    storage:  dbPath: "F:\MongoData"