goingmeta
goingmeta copied to clipboard
How to load a DB dump in community edition?
Hi,
sorry, I am a neo4j beginner, and I am trying to follow instructions for session23. Specifically, I am trying to load the legislation
database dump, as stated by the instructions in the README file:
Import the DB dump with the following command:
./neo4j-admin database load --from-path=/path..to..file/ legislation
Unfortunately, this loads the database into a new database called legislation
instead of into the default neo4j
database, as indicated here:
root@61389ec97be7:/var/lib/neo4j# neo4j-admin database info
Database name: legislation
Database in use: false
Store format version: record-aligned-1.1
Store format introduced in: 5.0.0
Last committed transaction id:79
Store needs recovery: false
Database name: neo4j
Database in use: true
Last committed transaction id:-1
Store needs recovery: true
Database name: system
Database in use: true
Last committed transaction id:-1
Store needs recovery: true
This database is not activated though (Database in use: False
), and the documentation states that I cannot have multiple DBs in the community edition. How can I use the neo4j-admin command to either load the legislation
dump's contents into the default neo4j DB, or rename it during the load?
Thanks in advance! :)