# Upgrade Neo4j DB from 2.1.4 to Latest Neo4j Community Edition

**URL:** <https://community.neo4j.com/t/upgrade-neo4j-db-from-2-1-4-to-latest-neo4j-community-edition/44247>\
**Category:** Cypher\
**Tags:** upgrade\
**Created:** [September 11, 2021, 11:12am UTC](https://community.neo4j.com/t/upgrade-neo4j-db-from-2-1-4-to-latest-neo4j-community-edition/44247 "2021-09-11T11:12:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![arunn472](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/arunn472/32/20023_2.png) [@arunn472](https://community.neo4j.com/u/arunn472)\
**Post date:** [September 11, 2021, 11:12am UTC](https://community.neo4j.com/t/upgrade-neo4j-db-from-2-1-4-to-latest-neo4j-community-edition/44247/1 "2021-09-11T11:12:58Z")

</div>

We would like upgrade our application developed using Neo4j DB 2.1.4 to Latest Neo4j Community Edition.

Based on below articles

**[Supported upgrade and migration paths in 4.x - Upgrade and Migration Guide](https://neo4j.com/docs/upgrade-migration-guide/current/supported-paths/)**  
**[https://neo4j.com/download-center/#community](https://neo4j.com/download-center/#community)**  
**[Long upgrade path 2.1.x -\> 3.5 - #3 by ryan.boyd](https://community.neo4j.com/t/long-upgrade-path-2-1-x-3-5/7037/3)**

**Suggested upgrade path :** 2.1.4 -\> 2.1.8-\> 2.3.12 -\> 3.3.9 -\> 3.5.5-\>3.5.latest→ 4.0.latest → 4.1.latest → 4.2.latest\*\*

**But the challege we are facing is the older versions of neo4j installers are no longer available.**

---

<div class="post-metadata">

**Author:** ![dhruv.sharma8826](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dhruv.sharma8826/32/4888_2.png) [@dhruv.sharma8826](https://community.neo4j.com/u/dhruv.sharma8826)\
**Post date:** [September 12, 2021, 10:14am UTC](https://community.neo4j.com/t/upgrade-neo4j-db-from-2-1-4-to-latest-neo4j-community-edition/44247/2 "2021-09-12T10:14:40Z")

</div>

Hi,

One possible way to upgrade, would be to take a backup/dump of the database from the current version of your Neo4j, save it. Then set up the latest version of Neo4j as a fresh database and import the data back into the db on the latest version.

Since 2.1.4 is a very old version and has a lot of upgrades happened since then, not sure if there is any direct way to upgrade as a lot of background structure of Neo4j architecture and working has also changed between 2.1.4 and latest 4.x.

Regards.

---

<div class="post-metadata">

**Author:** ![dana\_canzano](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dana_canzano/32/27392_2.png) [@dana\_canzano](https://community.neo4j.com/u/dana_canzano)\
**Post date:** [September 14, 2021, 5:34pm UTC](https://community.neo4j.com/t/upgrade-neo4j-db-from-2-1-4-to-latest-neo4j-community-edition/44247/3 "2021-09-14T17:34:48Z")

</div>

I dont know if the backup approach would even work

Neo4j 2.1.4 is 7 yrs old [Neo4j 2.1.4 - Neo4j Graph Data Platform](https://neo4j.com/release-notes/database/neo4j-2-1-4/).

---

<div class="post-metadata">

**Author:** ![dhruv.sharma8826](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dhruv.sharma8826/32/4888_2.png) [@dhruv.sharma8826](https://community.neo4j.com/u/dhruv.sharma8826)\
**Post date:** [September 19, 2021, 7:03am UTC](https://community.neo4j.com/t/upgrade-neo4j-db-from-2-1-4-to-latest-neo4j-community-edition/44247/4 "2021-09-19T07:03:33Z")

</div>

In that case, maybe the possible way to upgrade would be to actually export the data into some form like csv, etc. and then set up the latest neo4j database and then import the data from the files created.

This definitely is not a direct way of upgrading, but considering such a old version of neo4j needs to be upgraded, it might be the safest solution in hand. It would just be a one time trade-off, as in this way the application would be using the latest neo4j and then subsequent upgrades can be done through normal process from time to time.

Regards.

---

<div class="post-metadata">

**Author:** ![ameyasoft](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/ameyasoft/32/32639_2.png) [@ameyasoft](https://community.neo4j.com/u/ameyasoft)\
**Post date:** [September 22, 2021, 5:41am UTC](https://community.neo4j.com/t/upgrade-neo4j-db-from-2-1-4-to-latest-neo4j-community-edition/44247/5 "2021-09-22T05:41:41Z")

</div>

Do you have the graph.db file from your Nedo4j 2.1.4 version?

---

<div class="post-metadata">

**Author:** ![newkid](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/newkid/32/3868_2.png) [@newkid](https://community.neo4j.com/u/newkid)\
**Post date:** [September 22, 2021, 1:49pm UTC](https://community.neo4j.com/t/upgrade-neo4j-db-from-2-1-4-to-latest-neo4j-community-edition/44247/6 "2021-09-22T13:49:23Z")

</div>

Not sure if this is a solution you are looking for but can bring the graph to the new installation. If you have APOC installed on the older version, then run the following command in your browser. The file will be exported to /import folder  
CALL apoc.export.cypher.all("all.cypher")

Install the new Neo4j version and APOC. Create a new local DBMS, then run the following command in browser.  
Call apoc.cypher.runFile("all.cypher")

---

<div class="post-metadata">

**Author:** ![dana\_canzano](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dana_canzano/32/27392_2.png) [@dana\_canzano](https://community.neo4j.com/u/dana_canzano)\
**Post date:** [September 22, 2021, 3:45pm UTC](https://community.neo4j.com/t/upgrade-neo4j-db-from-2-1-4-to-latest-neo4j-community-edition/44247/7 "2021-09-22T15:45:21Z")

</div>

@newkid APOC was not available for Neo4j 2.x releases

---

<div class="post-metadata">

**Author:** ![cjsantiago48](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/cjsantiago48/32/31363_2.png) [@cjsantiago48](https://community.neo4j.com/u/cjsantiago48)\
**Post date:** [April 12, 2024, 12:53pm UTC](https://community.neo4j.com/t/upgrade-neo4j-db-from-2-1-4-to-latest-neo4j-community-edition/44247/8 "2024-04-12T12:53:45Z")

</div>

Was there any success in upgrading?
