Cómo restablecer / borrar / eliminar la base de datos neo4j?
Podemos eliminar todos los nodos y relaciones siguiendo la consulta.
MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE n,r
Pero el nodo recién creado obtiene el id interno como ({last node internal id} + 1). No se restablece a cero.
¿Cómo podemos restablecer la base de datos neo4j como nodo recién creado obtendrá id como 0?
Desde 2.3, podemos eliminar todos los nodos con relaciones,
MATCH (n)
DETACH DELETE n
37
Author: cricket_007, 2014-04-26
2 answers
Apague su servidor Neo4j, haga un rm -rf data/graph.db
e inicie el servidor nuevamente. Este procedimiento borra completamente sus datos, por lo que debe manejarlos con cuidado.
52
Author: Stefan Armbruster,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-04-26 11:38:36
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-04-26 11:38:36
Si lo está utilizando en un contenedor docker, puede hacer
docker-compose rm -f -s -v myNeo4jService
0
Author: Jordan Morris,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-09-15 10:31:32
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-09-15 10:31:32