cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site migration is underway. Phase 2: migrate recent content

Start Neo4J Desktop database using Python

pruthviraj_v
Node Link

Hi Team,

Could you please let me know if there is a programmatic way of starting the database in the Neo4J Desktop version? So far I was using the Start button to start the database but I would want to start the database using python.

I am already using python to execute commands on the database but have not been able to find any reference for starting the database using python on the Neo4J desktop.

Regards,
Pruthvi

1 REPLY 1

koji
Ninja
Ninja

Hi @pruthviraj_v

How about this shell command?
This is a example of Python.
Please modify the path and directory name and execute it.

import os
os.system('/<Your path to neo4j in the project>/Data/dbmss/dbms-<xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx>/bin/neo4j start')

like this code.
You also need to set up the path to Java 11.

import os
os.system('/Users/username/Library/Application\ Support/com.Neo4j.Relate/Data/dbmss/dbms-e72b51ba-3f05-4ee2-b37c-b892529d6aad/bin/neo4j start')