712 B
712 B
Admin tasks
Load a new dump
-
create the new database
CREATE DATABASE <name>
-
offline the new database
STOP DATABASE <name>
-
connect to running docker container
docker exec -it neo4jserver bash
-
load the dump
neo4j-admin load --from=/data/dumps/filename.dump --database=<name> --force
-
set the correct permissions for the new database
chown -R neo4j:neo4j /var/lib/neo4j/data/transactions/<name> chown -R neo4j:neo4j /var/lib/neo4j/data/databases/<name>
-
start the database
START DATABASE <name>
neo4j configuration file neo4j.conf
dbms.default_database