Structr, existing Neo4j installation and cypher shell

I have the following installations on my Windows 7 machine:

  • Neo4j Community Edition 3.1.0
  • Structr-u-2.0.1

I installed Neo4j first, then Structr UI.

I can start the Structr interface and create a schema, add nodes and relationships.

I have the following questions:

  • I am assuming that Structr starts and uses its own, independent neo4j instance. Whenever I have already installed Neo4j, Structr throws an exception stating that 7474 is already associated.
  • I cannot connect to this "internal" Neo4j instance from the Cypher shell (using a bat file from my existing instance, providing a port number, etc.).
  • I want to use both the Structr interface and the Cypher wrapper. The best way to do this is to ask Structr to use my existing Neo4j instance and not the internal one.

How can I proceed?

+3


source to share


1 answer


  • Yes, right. Structr runs its own built-in Neo4j database, so if you start Neo4j first, Structr tries to bind to the same ports as Neo4j and fails as the ports are already in use.

  • Structr doesn't have a connector for the Cypher shell, so you won't be able to connect to an internal Neo4j instance.

  • Use the latest Structr (2.1) snapshot from https://structr.org/repositories/snapshots/org/structr/structr-ui/2.1.0-SNAPSHOT/structr-ui-2.1.0-20170202.205126-26-dist.zip . This version supports connecting to a remote Neo4j database using the following configuration parameters in the structr.conf configuration file:

    database.driver.mode = remote
    database.connection.url = bolt://localhost:7687
    database.connection.username = neo4j
    database.connection.password = neo4j
    
          



You will need to adapt the above settings according to your Neo4j installation.

+2


source







All Articles