1x2x4x1
1x2x4x1

Reputation: 1

How do I connect to Neo4j?

I want to switch over from mySQL to Neo4j for my website. With mySQL, the code would be something like $con = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE); But what's the code for Neo4j?

Upvotes: 0

Views: 39

Answers (1)

Tomaž Bratanič
Tomaž Bratanič

Reputation: 6514

In Python for example it looks like this:

driver = GraphDatabase.driver(neo4j_uri, auth=(neo4j_username, neo4j_password))

Check the documentation for more information.

Upvotes: 1

Related Questions