Himanshu
Himanshu

Reputation: 2454

How to Load Cypher File into Neo4j

I have generated a cypher file and want to load it into neo4j.

The only relevant documentation I could find was about loading csv's.

I also tried the shell but it seems to have no effect

cypher-shell.bat -uneo4j -pne04j < db.cql

Copy paste into localhost:7474/browser makes the browser unresponsive.

Upvotes: 3

Views: 4483

Answers (2)

FatihSarigol
FatihSarigol

Reputation: 647

Not sure when this has been added but in the current version (4.4) an alternative way to load a cypher file to NEO4J (GUI) is by dragging and dropping the cypher file over the web browser, which then offers two options, either to add it to the favorites or to paste it in the editor.

Upvotes: 0

Bruno Peres
Bruno Peres

Reputation: 16365

In the current Neo4j version you can use Cypher Shell to achieve your goal.

From the docs, Invoke Cypher Shell with a Cypher script from the command line:

$ cat db.cql | bin/cypher-shell -u yourneo4juser -p yourpassword

Note that this example is based in a Linux instalation. If you are using Neo4j with Windows, you will need to adjust this command to your needs.

Upvotes: 8

Related Questions