Display store information
You can use the neo4j-admin database info
command to print information about a Neo4j database store.
The following information about the store format of a given database store can be retrieved:
-
The store format version.
-
When the store format version was introduced.
-
Whether the store format needs to be migrated to a newer version.
For more information on database store formats, see Store formats.
The neo4j-admin database info
command is located in the bin directory.
Syntax
The neo4j-admin database info
command should be invoked against an offline database store or a backup and has the following syntax:
neo4j-admin database info [-h] [--expand-commands] [--verbose] [--additional-config=<file>] [--format=text|json] [--from-path=<path>] [<database>]
Parameters
Parameter | Description | Default |
---|---|---|
|
Name of the database to show info for. Can contain * and ? for globbing. Note that * and ? have special meaning in some shells and might need to be escaped or used with quotes. |
|
Options
The neo4j-admin database info
command has the following options:
Option | Description | Default |
---|---|---|
|
Configuration file with additional configuration. |
|
|
Allow command expansion in config value evaluation. |
|
|
The format of the returned information. |
|
|
Path to databases directory. |
|
|
Show this help message and exit. |
|
|
Enable verbose output. |
|
1. See Tools → Configuration for details. |
Examples
neo4j-admin database info
against a database storebin/neo4j-admin database info mygraph.db
Output:
Store format version: record-aligned-1.1 Store format introduced in: 5.0.0
neo4j-admin database info
against all databasesThe command can also be invoked against all databases, as follows:
neo4j-admin database info --from-path=<databases-directory>
bin/neo4j-admin database info data/databases
Output:
Database name: foo Database in use: false Store format version: record-aligned-1.1 Store format introduced in: 5.0.0 Last committed transaction id:2 Store needs recovery: true Database name: bar Database in use: true
When the command is invoked against several databases, if some are online they will simply report as |
neo4j-admin database info
against a database and output JSONIf you are parsing the results of this command you may use the --format=json
option to receive the output as JSON.
All the same fields are included and all values are strings.
bin/neo4j-admin database info --from-path data/databases --format=json foo
Output:
{"databaseName":"foo", "inUse":"false", "storeFormat”:"record-aligned-1.1", "storeFormatIntroduced”:"5.0.0", "lastCommittedTransaction":"2", "recoveryRequired":"true"}