Hi Johan,
As long as you are not using any Enterprise-specific storage engines (
Encrypted Storage or
In-Memory), the data files are compatible between MongoDB Community & Enterprise editions. If you are using an Enterprise storage engine you'll need to migrate your data to the standard WiredTiger storage engine using replication or backup & restore.
MongoDB Enterprise also supports some additional configuration options (such as LDAP) which you would have to comment out or remove from your config file when switching to the Community edition.
The general process to convert between editions would be:
- stop the running version of MongoDB server
- take a backup of your MongoDB configuration file & dbPath (as a precaution)
- uninstall the current MongoDB server package
- install the equivalent release version of the edition you want to use
- review your MongoDB configuration file for any required changes (dbPath or removing/commenting unsupported options)
- start the MongoDB server
For example, if you are using MongoDB 4.2.2 Enterprise edition you would install MongoDB 4.2.2 Community edition.
The steps to install or uninstall will depend on your O/S. See
Installation Guides to get started.
Regards,
Stennie