cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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.