Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-26-2021 04:25 PM
Hello,
I am working on an earth science database project called Throughput that uses Neo4j as its main database. My team had been passing around copies for people to explore, test, and use locally by distributing a database .dump file that could be loaded in. The cypher command we had been using was:
bin/neo4j-admin load --from=data/backups/<filename>.dump --database=neo4j --force
On Neo4j version 4.1.3, this command worked and the snapshot was loaded in. However, we wanted to make use of the most recent version of the Graph Data Science Library, so I upgraded my Neo4j version to 4.2.4. The above command now only results in this error message:
Invalid input 'b': expected <init> (line 1, column 1 (offset: 0))
"bin/neo4j-admin load --from=data/backups/<filename>.dump --database=neo4j --force"
^
I admit I'm pretty lost on why the command worked in 4.1.3 but not in 4.2.4. Any help would be appreciated. If it's important, I have the APOC plugin and the GDSL plugin installed. If there are more efficient ways to share the database for local use and testing than distributing around a .dump file, that would also be handy to know.
Solved! Go to Solution.
03-27-2021 01:16 PM
It's seems that it's not related to the command itself but the location of it when you execute it in your terminal. We would need to have more information about the way you type your command in the terminal.
03-27-2021 01:16 PM
It's seems that it's not related to the command itself but the location of it when you execute it in your terminal. We would need to have more information about the way you type your command in the terminal.
03-30-2021 01:11 PM
Yes, I was entering it in the wrong place accidentally. Whoops!
06-13-2022 03:59 PM
Hi all,
For anyone just as much of a novice as me with Neo4j I hope some further explanation might help:
What worked was the following:
Opening Neo 4j Desktop and creating the new project where you want to import your dump file as your database.
Then open the terminal by clicking on the following
This should open the terminal in the correct path where your project is stored.
Then I tried the following command similar to above screenshots.
Notice that "northwind.dump" is the file I wanted to import and "new" is an arbitrary name that you can choose.
Once this command is executed succsfully you will have to do the following:
Create a database with the exact name as in your command in the terminal, i.e. here the name "new".
Thank you very much for all your help Neo4j community. I hope this helps someone new to Neo4j using Windows.
All the sessions of the conference are now available online