Update cheatsheets

This commit is contained in:
ivuorinen
2024-06-11 00:14:23 +00:00
parent d9cb45e38a
commit 77fd881bac
6 changed files with 87 additions and 19 deletions

37
tldr/neo4j-admin Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# neo4j-admin
> Manage and administer a Neo4j DBMS (Database Management System).
> More information: <https://neo4j.com/docs/operations-manual/current/tools/neo4j-admin/>.
- Start the DBMS:
`neo4j-admin server start`
- Stop the DBMS:
`neo4j-admin server stop`
- Set 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=true`
- Load a database from a specified archive file through `stdin`:
`neo4j-admin database load --from-stdin {{database_name}} --overwrite-destination=true < {{path/to/filename.dump}}`
- Display help:
`neo4j-admin --help`