Database Reference
In-Depth Information
Here are the various options available with this utility for connecting to the local
Neo4j server:
neo4j-shell -path <PATH> : This option is the path to the data-
base directory on a local filesystem. A new database will be created in
case the given path does not contain any valid neo4j database.
neo4j-shell -pid <PID> : This option is used to connect to a spe-
cific process ID.
neo4j-shell -readonly : This option is used to connect to the loc-
al database in READONLY mode.
neo4j-shell -c <COMMAND> : This option is used to execute a
single statement and then shell exits.
neo4j-shell -file <FILE > : This option is used to read the
contents of the file (multiple CRUD operations) and then execute it.
neo4j-shell -config - <CONFIG> : This option is used to read
the given configuration file ( neo4j-server.propoerties ) from
the specified location and then start the shell.
Here are the various options available with this utility for connecting to the re-
mote Neo4j server:
neo4j-shell -port <PORT> : This option is used to connect to the
server running on a different port other than the default port (1337).
neo4j-shell -host <HOST> : This is the IP address or domain
name of the remote host on which the neo4j server is installed and is cur-
rently running.
neo4j-shell -name <NAME> : This option is used to connect to the
remote host by getting the reference of the object binded within the RMI
registry.
The following configuration changes are required to enable your shell to connect
remotely. Open <$NEO4J_HOME>/conf/neo4j.properties and enable
the following properties, providing an appropriate value against each of them:
#remote_shell_enabled = true
#remote_shell_host = 127.0.0.1
#remote_shell_port = 1337
Note
All the utilities can be found under <$NEO4J_HOME>/bin .
Search WWH ::




Custom Search