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
system
andneo4j
databases using theneo4j-admin dump
command:neo4j-admin dump --database=neo4j --to=/dumps/neo4j/neo4j-<timestamp>.dump
neo4j-admin dump --database=system --to=/dumps/neo4j/system-<timestamp>.dump
By 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 dump
command to avoid losing your data. -
Uninstall Neo4j by running the command:
--- sudo apt remove neo4j ---
-
Create a backup using the
neo4j admin dump
command 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
system
andneo4j
databases into the Neo4j 4.4 Enterprise Edition server usingneo4j-admin load
:neo4j-admin load neo4j --from=/dumps/neo4j/neo4j-<timestamp>.dump
neo4j-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 start
The upgrade takes place during startup.
-
You must manually upgrade the
system
database. Connect to thesystem
database and run the following procedure:CALL dbms.upgrade();
-
Drop the existing
neo4j
database that was created by default on startup. Note, this does not remove any store files loaded vianeo4j-admin load
.DROP DATABASE neo4j;
-
Create the
neo4j
database 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.