generalneo4j

Connect to Neo4j

You can connect to Neo4j from the same server where it is installed with the Neo4j Admin client tool.

Execute the following command:

$ neo4j-admin COMMAND
  • Execute the neo4j-admin help command to check the available commands and Neo4j environment variables.

    You should see an output similar to this:

    Connect to Neo4j

Operate with the Neo4j database

Neo4j has its own command-line tool to operate with its database from the same server where it is installed. Cypher Shell allows you to connect to the database, query data, define schema, or perform administrative tasks. Cypher Shell communicates via the encrypted binary protocol Bolt.

  • To connect to the database using the Cypher Shell CLI execute the command below. Remember to replace the PASSWORD placeholder with your application password.

    $ cypher-shell -u neo4j -p PASSWORD
    
  • Once you connect to the database, check the available commands by running the :help; command:

    Connect to Neo4j database

Last modification September 5, 2018