snippetbashTip
neo4j-admin — Manage and administer a Neo4j DBMS (Database Management System). See also: `cypher-shell`, `mysqld`.
Viewed 0 times
commandandneo4j-adminclimanagedbmsneo4jadminister
Problem
How to use the
neo4j-admin command: Manage and administer a Neo4j DBMS (Database Management System). See also: cypher-shell, mysqld. More information: <https://neo4j.com/docs/operations-manual/current/neo4j-admin-neo4j-cli/>.Solution
neo4j-admin — Manage and administer a Neo4j DBMS (Database Management System). See also: cypher-shell, mysqld. More information: <https://neo4j.com/docs/operations-manual/current/neo4j-admin-neo4j-cli/>.Start the DBMS:
neo4j-admin server startStop the DBMS:
neo4j-admin server stopSet the initial password of the default
neo4j user (prerequisite for the first start of the DBMS):neo4j-admin dbms set-initial-password {{database_name}}Create an archive (dump) of an offline database to a file named
database_name.dump:neo4j-admin database dump --to-path={{path/to/directory}} {{database_name}}Load a database from an archive named
database_name.dump:neo4j-admin database load --from-path={{path/to/directory}} {{database_name}} --overwrite-destination=trueLoad a database from a specified archive file through
stdin:neo4j-admin < {{path/to/file.dump}} database load --from-stdin {{database_name}} --overwrite-destination=trueDisplay help:
neo4j-admin --helpCode Snippets
Start the DBMS
neo4j-admin server startStop the DBMS
neo4j-admin server stopSet the initial password of the default `neo4j` user (prerequisite for the first start of the DBMS)
neo4j-admin dbms set-initial-password {{database_name}}Create an archive (dump) of an offline database to a file named `database_name.dump`
neo4j-admin database dump --to-path={{path/to/directory}} {{database_name}}Load a database from an archive named `database_name.dump`
neo4j-admin database load --from-path={{path/to/directory}} {{database_name}} --overwrite-destination=trueContext
tldr-pages: common/neo4j-admin
Revisions (0)
No revisions yet.