当前位置:网站首页>Neo4j database export

Neo4j database export

2022-06-27 05:06:00 Thought is tightening

Preface : With the help of Awesome Procedures On Cypher (APOC) export neo4j Database to csv In file

Environmental Science :windows10、neo4j community 4.48、APOC 4.4.0.1

1. APOC Download and configure

Preparation : sign out neo4j service

1.1 download

Download and neo4j The corresponding version of jar package , Note the version dependency .

APOC And neo4j Version dependency diagram ( Intercepted from APOC github,2022-06-25)

apoc versionneo4j version
4.4.0.14.4.0 (4.3.x)
4.3.0.44.3.7 (4.3.x)
4.2.0.94.2.11 (4.2.x)
4.1.0.104.1.11 (4.1.x)
4.0.0.184.0.12 (4.0.x)
3.5.0.153.5.30 (3.5.x)
3.4.0.83.4.18 (3.4.x)
3.3.0.43.3.9 (3.3.x)
3.2.3.63.2.14 (3.2.x)
3.1.3.93.1.9 (3.1.x)
3.0.8.63.0.12 (3.0.x)
3.5.0.03.5.0-beta01
3.4.0.23.4.5
3.3.0.33.3.5
3.2.3.53.2.3
3.1.3.83.1.5

Open the link , Select File apoc-4.x.x.x-all.jar download . If it's the latest neo4j 4.4.8 Downloadable apoc-4.4.0.1-all.jar

1.2 To configure

take jar Bag to neo4j Of /plugins Under the folder , And add apoc.export.file.enabled=true to neo4j Installation directory conf/neo4j.conf The last line of the document

1.3 verification

  1. By order neo4j.bat console start-up neo4j , Open with browser http://localhost:7474/browser/
  2. Enter the command return apoc.version(), If the display APOC The version of is successfully configured

2. Export database

Enter the command :CALL apoc.export.csv.all("export_filename.csv",{}), Default save to Neo4j Installation directory /import In the folder . File format utf-8,excel Open will be messy .

Other export format settings , See official documents :APOC export Official documents


Postscript :

  1. Consider plug-ins 、 Environmental adaptation and other factors , It is not recommended to install the latest version of a software .
  2. neo4j desktop Version installation is more convenient , Built in module with plug-in installation
  3. It is not recommended to install at the same time neo4j desktop and community edition , There may be conflict

Reference article :

take Neo4j database Export to a csv file You know

APOC Installation Simple books

原网站

版权声明
本文为[Thought is tightening]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206270435105153.html