cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

Java embedded stop database

paulB
Node Clone

Hello,

I do have a test on embedded community edition. This test make use of neo4j-admin import command. But to use this command, the database should be down. So I try :

 

 

embeddedDatabaseServer.databaseManagementService().shutdownDatabase("neo4j");

 

 

But running this I get : Unsupported administration command: STOP DATABASE `neo4j`.

neo4j is the running database, and I'm 100% sure that it is the database name.

Thank you for any help.

1 REPLY 1

paulB
Node Clone

With embeddedDatabaseService being of type org.neo4j.harness.Neo4j.