Neo4j DB Upgrade to 3.5.8 from 3.x


This section describes how to upgrade a single Neo4j instance.

Pre-upgrade steps

  1. If the database is running, shut it down cleanly.
  2. Perform and verify backups:
    • Back up neo4j.conf.
    • If using native user and role management, back up the data/dbms directory.
    • Back up all the files used for encryption, i.e. private key, public certificate, and the contents of the trustedand revoked directories.
    • Verify that you have a full backup that is stored in a safe location, either using the online backup tool or offline backups.

Steps to upgrade 

  1.  Refer Neo4j Installation to download operating system specific Neo4j folder.
  2. Untar or unzip Neo4j 3.5.8 folder
  3. Set dbms.allow_upgrade=true in neo4j.conf of the 3.5.8 installation. Neo4j will fail to start without this configuration.
  4. If using native user and role management, copy the data/dbms directory into the new location.
  5. Copy the files used for encryption from the old installation to the new one.
  6. Copy the data directory from the old installation to the new one. This step is not applicable if you have dbms.directories.data pointing to a directory outside of NEO4J_HOME.
  7. Start up Neo4j 3.5.8. The database upgrade will take place during startup.

Post-upgrade steps

  1. When the upgrade has finished, dbms.allow_upgrade should be set to false or be removed.
  2. Restart the database.
  3. It is good practice to make a full backup immediately after the upgrade.

Back to Top

©2021 Cognizant, all rights reserved. US Patent 10,410,152