R
R
Romi2021-03-29 16:41:56
PHP
Romi, 2021-03-29 16:41:56

What parameters to specify in Bolt-driver (PHP) for neo4j to make it work under Laradoc(Docker)?

Raised neo4j in a Laradoc (Docker) box - it works, the neo4j browser is launched on localhost: 7401 and the neo4j database itself is available via port 7402 (as far as I understand, this socket for Bolt is there).

Any tests and requests in the neo4j browser run and work fine. Authorization is disabled.

Now I'm trying to connect with the Bolt driver they recommend on the off site.

https://github.com/neo4j-php/Bolt

and here it doesn’t work anymore, because it tells me everything about everything like:

Bolt\error\ConnectException 
Connection refused


if you have worked with this driver - please share what it needs to write to make it work?

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Romi, 2021-03-29
@romicohen

I did not understand the settings of these sockets, as an intermediate solution I took this:
https://neo4j.com/docs/http-api/current/
it may be slower, but it works :D

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question