Database import using neo4j-admin on Ubuntu fails (following tutorial)

I agree @jsimkoff It took me too long to figure out that ownership needed to be part of my workflow for using the neo4j-admin import tool. I usually do not overwrite the default neo4j database and instead create a new database using the --database flag and then make sure to run the following commands:

- `sudo chown -R neo4j:neo4j /var/lib/neo4j/data/transactions/<database_name>`
- `sudo chown -R neo4j:neo4j /var/lib/neo4j/data/databases/<database_name>`

where the path is dependent on your OS. In the Neo4j Desktop or Browser you can then use :use <database_name> to switch to the new database. The prompt will change to your database's name. You can also use the pulldown in the Neo4j Desktop or browser UI to switch databases.

1 Like