If I try to directly copy the data/db folder from an old installation of mongodb to the new one I'm getting this error when I try to start mongod,
** IMPORTANT: UPGRADE PROBLEM:
Found an invalid featureCompatibilityVersion document
(ERROR: BadValue: Invalid value for version, found 3.6, expected '4.2' or '4.0'.
Contents of featureCompatibilityVersion document in admin.system.version:
{ _id: "featureCompatibilityVersion", version: "3.6" }.
See https://docs.mongodb.com/manual/release-notes/4.2-compatibility/#feature compatibility.).
If the current featureCompatibilityVersion is below 4.0, see the documentation on upgrading at
https://docs.mongodb.com/manual/release-notes/4.2/#upgrade-procedures.
I think it's because my old cluster is from an old version version of mongodb (2018). How do I import my old databases?