当前位置:网站首页>neo4j数据库导出
neo4j数据库导出
2022-06-27 04:35:00 【思想在拧紧】
前言:借助 Awesome Procedures On Cypher (APOC) 导出 neo4j 数据库至 csv 文件中
环境:windows10、neo4j community 4.48、APOC 4.4.0.1
1. APOC下载与配置
前期准备:退出 neo4j 服务
1.1下载
下载与 neo4j 相应版本的 jar 包,注意版本依赖关系。
APOC 与 neo4j 版本依赖关系图(截取自APOC github,2022-06-25)
apoc version | neo4j version |
---|---|
4.4.0.1 | 4.4.0 (4.3.x) |
4.3.0.4 | 4.3.7 (4.3.x) |
4.2.0.9 | 4.2.11 (4.2.x) |
4.1.0.10 | 4.1.11 (4.1.x) |
4.0.0.18 | 4.0.12 (4.0.x) |
3.5.0.15 | 3.5.30 (3.5.x) |
3.4.0.8 | 3.4.18 (3.4.x) |
3.3.0.4 | 3.3.9 (3.3.x) |
3.2.3.6 | 3.2.14 (3.2.x) |
3.1.3.9 | 3.1.9 (3.1.x) |
3.0.8.6 | 3.0.12 (3.0.x) |
3.5.0.0 | 3.5.0-beta01 |
3.4.0.2 | 3.4.5 |
3.3.0.3 | 3.3.5 |
3.2.3.5 | 3.2.3 |
3.1.3.8 | 3.1.5 |
打开链接,选择文件 apoc-4.x.x.x-all.jar
下载。如果是最新的 neo4j 4.4.8 可下载 apoc-4.4.0.1-all.jar
1.2 配置
将 jar 包放至 neo4j 的 /plugins
文件夹下,并添加 apoc.export.file.enabled=true
至 neo4j 安装目录下 conf/neo4j.conf
文件的最后一行
1.3 验证
- 以命令
neo4j.bat console
启动 neo4j ,使用浏览器打开http://localhost:7474/browser/
- 输入命令
return apoc.version()
,若显示APOC的版本则配置成功
2. 导出数据库
输入命令:CALL apoc.export.csv.all("export_filename.csv",{})
,默认存放至Neo4j安装目录的 /import
文件夹内。文件格式 utf-8,excel 打开会乱码。
其他导出格式的设置,见官方文档:APOC 导出 官方文档
后记:
- 考虑插件、环境适配等因素,不建议安装某软件的最新版本。
- neo4j desktop版本安装更加方便,内置有插件安装的模块
- 不建议同时安装neo4j desktop和community版本,可能会有冲突
参考文章:
边栏推荐
- 微服务系统设计——分布式锁服务设计
- 010 C语言基础:C函数
- FastDDS的服务器记录-译-
- Cultural tourism night tour | stimulate tourists' enthusiasm with immersive visual experience
- 百度飞桨“万有引力”2022首站落地苏州,全面启动中小企业赋能计划
- MobileNet系列(4):MobileNetv3网络详解
- MySql最详细的下载教程
- 【B站UP DR_CAN学习笔记】Kalman滤波3
- 2022-06-26:以下golang代码输出什么?A:true;B:false;C:编译错误。 package main import “fmt“ func main() { type
- PostgreSQL basic command tutorial: create a new user admin to access PostgreSQL
猜你喜欢
微服务系统设计——微服务监控与系统资源监控设计
快速掌握 ASP.NET 身份认证框架 Identity - 通过邮件重置密码
Microservice system design - service fusing and degradation design
基于MobileNet-Yolov4搭建轻量化目标检测
PostgreSQL basic command tutorial: create a new user admin to access PostgreSQL
日志收集系统
Kotlin Compose 自定义 CompositionLocalProvider CompositionLocal
IOS development: understanding of dynamic library shared cache (dyld)
Kotlin compose custom compositionlocalprovider compositionlocal
Facing the "industry, University and research" gap in AI talent training, how can shengteng AI enrich the black land of industrial talents?
随机推荐
es6 0622三
006 C语言基础:C存储类
Cache comprehensive project - seckill architecture
019 C语言基础:C预处理
微服务系统设计——微服务监控与系统资源监控设计
Cultural tourism night tour | stimulate tourists' enthusiasm with immersive visual experience
MobileNet系列(4):MobileNetv3网络详解
013 basics of C language: C pointer
Mysql database foundation: DQL data query language
微服务系统设计——分布式定时服务设计
Penetration test - directory traversal vulnerability
Kotlin compose implicitly passes the parameter compositionlocalprovider
Why does C throw exceptions when accessing null fields?
乐得瑞LDR6035 USB-C接口设备支持可充电可OTG传输数据方案。
Installing MySQL on Windows
021 C语言基础:递归,可变参数
[BJDCTF2020]The mystery of ip
Halon common affine transformation operators
PostgreSQL basic command tutorial: create a new user admin to access PostgreSQL
微服务系统设计——分布式缓存服务设计