I want to connect to my Neo4j server from my local machine. The neo4j server comprises of 3 instances, as it is a cluster. Using browser, I am able to connect to the cluster using the connection scheme: neo4j://localhost:7687 but using cypher-shell, I am only able to connect via bolt scheme.
It is a problem because I want the instance I am connecting to be aware of the cluster and if I understand correctly, bolt scheme does not allow that.
I connect to Neo4j by tunneling into the K8s node and port forwarding 7687. And this is how I connect:
➜ cypher-shell -a neo4j://localhost:7687 username: neo4j password: <pw> Failed to connect to neo4j://localhost:7687, fallback to bolt://localhost:7687 Connected to Neo4j using Bolt protocol version 4.2 at bolt://localhost:7687 as user neo4j. Type :help for a list of available commands or :exit to exit the shell. Note that Cypher queries must end with a semicolon. neo4j@neo4j> :help
As you can see, the connection falls to bolt even though I connect via neo4j scheme.