mongod
I got the following error
** IMPORTANT: UPGRADE PROBLEM: The data files need to be fully upgraded to version 3.6 before attempting an upgrade to 4.0; see http://dochub.mongodb.org/core/4.0-upgrade-fcv for more details.
But if I use
brew services start mongodb
then mongo server can start.
To fix the mongod error
I found the similar error thread
Error while upgrading Mongodb from 3.2 to 3.6
So I downgraded to mongodb 3.6, and run
db.adminCommand( { setFeatureCompatibilityVersion: "3.6" } )
and then reinstall mongodb 4.0, I still have the same error when I run
mongodb
I still have to use
brew services start mongodb
to start mongodb
In command line, I run
> db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } )
{ "featureCompatibilityVersion" : { "version" : "3.6" }, "ok" : 1 }
>
It says featureCompatibilityVersion is 3.6
What else I need to do to satisfy "The data files need to be fully upgraded to version 3.6 "?
Thanks!