How are you supposed to convert Neo4j-Database-Dumps into CSV-Files?
I've created a Neo4j-Docker-container
Which is created from Neo4j Community Edition (5.6.0).
Read the Neo4j-Docs's Export-to-CSV.
Got a Neo4j-Database-Dump from ICIJ's Offshore-Leaks-Database
On their GitHub OffshoreLeaks-Data-Packages.
Imported on the Neo4j-Docker-container's Neo4j-Community-Server.
I'm looking for ways to export without needing to sign-up or purchase Neo4j.
I just want the data to be importable to other databases and services.
What are some ways you've come up with exporting the data?
I cannot export the database as-is, because
Neo4j only allows 1 User-Database for Community-Edition-Installations.
So their docs on Export-2-CSV don't work as-is here.
The only way I've gotten this to work is this.
Steps:
docker run -d \
-p 7474:7474 -p 7687:7687 \
-e apoc.export.file.enabled=true \
-e apoc.import.file.enabled=true \
-e apoc.import.file.use_neo4j_config=true \
-e NEO4J_PLUGINS=\[\"apoc\"\] \
neo4j
winpty docker exec -it [neo4j_container] sh
mkdir /var/lib/neo4j/data/dumps
docker cp [filename] [neo4j-container]:/var/lib/neo4j/data/dumps/
apoc.conf
that allows Neo4j-Dumps
winpty docker exec -it [neo4j_container] sh
apoc.conf
touch /var/lib/neo4j/conf/apoc.conf
apoc.conf
apoc.export.file.enabled=true
apoc.import.file.enabled=true
apoc.import.file.use_neo4j_config=true
dbms.security.procedures.unrestricted=apoc.*
bin/neo4j-admin database load [filename (no extension)] --overwrite-destination
bin/neo4j-admin database migrate [filename (no extension)] --force-btree-indexes-to-range
neo4j.conf
initial.dbms.default_database=[filename (no extension)]
neo4j.dump
bin/neo4j-admin database load neo4j --overwrite-destination
bin/neo4j-admin database migrate neo4j --force-btree-indexes-to-range
neo4j.conf
initial.dbms.default_database=neo4j
CALL apoc.export.csv.all("filename.csv", {})
/var/lib/neo4j/bin/neo4j
commandneo4j.csv
from /var/lib/neo4j/import/neo4j.csv