Migrating from 4.4 Community Edition to 4.4 Enterprise Edition
You can move from the Neo4j 4.4 Community Edition to the Neo4j 4.4 Enterprise Edition using the following steps.
Prepare your data and the neo4j.conf file
-
Stop the running Neo4j 4.4 Community Edition server:
neo4j stop -
Backup the
systemandneo4jdatabases using theneo4j-admin dumpcommand:neo4j-admin dump --database=neo4j --to=/dumps/neo4j/neo4j-<timestamp>.dumpneo4j-admin dump --database=system --to=/dumps/neo4j/system-<timestamp>.dumpBy default, dumps are located in data/dumps/. Alternatively, the location can be defined via the conf/neo4j.conf setting link:
dbms.directories.dumps.root. -
Prepare a neo4j.conf file to be used by the new installation if you have any custom values configured in your old neo4j.conf file. Look for:
-
Any non-default settings.
-
Any custom values of the settings
dbms.directories.*anddbms.default_database.
-
Install the Neo4j 4.4 Enterprise Edition
For Debian/RPM distributions
-
Uninstall Neo4j 4.4 Community Edition.
-
Create a backup using the
neo4j admin dumpcommand to avoid losing your data. -
Uninstall Neo4j by running the command:
--- sudo apt remove neo4j ---
-
Create a backup using the
neo4j admin dumpcommand to avoid losing your data. -
Uninstall Neo4j by running the following command:
--- sudo yum remove neo4j ---
-
-
Install Neo4j 4.4 Enterprise Edition.
Complete the migration from Community to the Enterprise Edition
-
Replace the neo4j.conf file with the one that you have prepared.
-
Copy all the files used for encryption, such as private key, public certificate, and the contents of the trusted and revoked directories (located in <NEO4J_HOME>/certificates/).
-
Load the
systemandneo4jdatabases into the Neo4j 4.4 Enterprise Edition server usingneo4j-admin load:neo4j-admin load neo4j --from=/dumps/neo4j/neo4j-<timestamp>.dumpneo4j-admin load system --from=/dumps/neo4j/system-<timestamp>.dump -
Navigate to the Neo4j 4.4 Enterprise Edition server and start the instance by running the following command from
<NEO4J_HOME>:neo4j startThe upgrade takes place during startup.
-
You must manually upgrade the
systemdatabase. Connect to thesystemdatabase and run the following procedure:CALL dbms.upgrade(); -
Drop the existing
neo4jdatabase that was created by default on startup. Note, this does not remove any store files loaded vianeo4j-admin load.DROP DATABASE neo4j; -
Create the
neo4jdatabase using the store files loaded vianeo4j-admin load:CREATE DATABASE neo4j; -
Monitor the neo4j.log file for information on how many steps the upgrade involves and how far it has progressed.