neo4j-jdbc
neo4j-jdbc copied to clipboard
JDBC driver URI for authentication
Neo4j server configured to use neo4j-contrib / authentication-extension.
When trying to use JDBC uri "jdbc:neo4j://localhost:7474/?user=myuser&password=admin" Error thrown is "401 Unauthorized"
When the authenctication is removed , jdbc driver works fine.
Does authentication-extension and JDBC driver work togther?
-Sam
They should.
If you access webadmin does the basic-auth dialog ask exactly for those two values?
Neo4j version 1.8
On accessing webadmin it does asks for basic-auth dialog. On entering right credentials it allows access. But jdbc with credentials fail.. here is an sample groovy code -
import java.io.File import groovy.sql.Sql
def srcCon = Sql.newInstance('jdbc:neo4j://myhost:7474/', 'admin', 'admin123', 'org.neo4j.jdbc.Driver')
srcCon.eachRow("START n=node(1) RETURN n.name as name") { println "${it.name}" }
The same code above works if authentication is disabled.
Hi Guys ,I am executing pega.yaml file .but getting below error .
helm install mypega pega/pega --namespace mypega --values pega.yaml Error: failed to parse pega.yaml: error converting YAML to JSON: yaml: line 35: did not find expected hexdecimal number
I have given uri as : driverUri: "C:\Users\singh610\Downloads/ojdbc7.jar" .please suggest me what to provide here ? what hexadecimal value it is expecting
please help me on this .
@ashishsinghalnl - try with the actual URL e.g. driverUri: "https://jdbc.postgresql.org/download/postgresql-42.2.19.jar" I think I tried with the file URI, e.g. file://c/<PATH>/dirver.jar before this does not work.