Sample Header Ad - 728x90

mongodb setFeatureCompatibilityVersion command not found

0 votes
1 answer
2538 views
I'm trying to upgrade my mongodb from 3.2 to 3.4 and I try to set the compatibility version by: db.adminCommand( { setFeatureCompatibilityVersion: "3.2" } ) But it says { "ok" : 0, "errmsg" : "no such command: 'setFeatureCompatibilityVersion', bad cmd: '{ setFeatureCompatibilityVersion: \"3.2\" }'", "code" : 59 } I'm not sure why the command is not found. Can somebody point me out in whats wrong? Here is the mongodb version info from db.serverStatus().version > 3.2.20 P.S: I'm running the command on admin database and authenticated on it as a user with root role.
Asked by Vijai (101 rep)
Aug 31, 2018, 12:11 PM
Last activity: Mar 9, 2025, 06:00 AM