Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
02-11-2022 09:03 AM
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
02-11-2022 04:20 PM
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')
All the sessions of the conference are now available online