Skip to content

Commit a8b1770

Browse files
Restructure the page
1 parent 871a270 commit a8b1770

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

modules/ROOT/pages/database-administration/standard-databases/recreate-database.adoc

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
11
:description: How to recreate your database in Neo4j.
22
[role=enterprise-edition]
33

4-
54
= Recreate a database
65

76
== The recreate procedure
87

9-
In Neo4j 2025.04, the xref:procedures.adoc#procedure_dbms_cluster_recreateDatabase[`dbms.cluster.recreateDatabase()`] procedure is deprecated in favour of xref:procedures.adoc#procedure_dbms_recreateDatabase[`dbms.recreateDatabase()`].
8+
The recreate procedure allows you to:
9+
10+
* Change the database store to a specified backup, while keeping all the associated privileges for the database.
11+
12+
* Make your database write-available again after it has been lost (for example, due to a disaster).
13+
See xref:clustering/disaster-recovery.adoc[Disaster recovery] for more information.
14+
15+
* label:new[Introduced in 2025.02] Delete the data and schema for a database, while keeping the database privileges assigned to each role.
16+
17+
* label:new[Introduced in 2025.04] Alter the database store format when clearing the data and schema.
18+
19+
[CAUTION]
20+
====
21+
The recreate procedure works only for real user databases and not for composite databases, or the `system` database.
22+
23+
Remember that the recreate procedure results in downtime while the stores get updated.
24+
The time is unbounded and may depend on different factors -- for example, the size of the store, network speed, etc.
25+
====
26+
27+
In Neo4j 2025.04, the xref:procedures.adoc#procedure_dbms_cluster_recreateDatabase[`dbms.cluster.recreateDatabase()`] procedure is deprecated in favor of xref:procedures.adoc#procedure_dbms_recreateDatabase[`dbms.recreateDatabase()`].
1028

1129
=== Syntax
1230

@@ -48,24 +66,7 @@ You cannot set secondaries without primaries.
4866

4967
|===
5068

51-
The recreate procedure allows you to:
52-
53-
* Change the database store to a specified backup, while keeping all the associated privileges for the database.
54-
55-
* Make your database write-available again after it has been lost (for example, due to a disaster).
56-
See xref:clustering/disaster-recovery.adoc[Disaster recovery] for more information.
57-
58-
* label:new[Introduced in 2025.02] Delete the data and schema for a database, while keeping the database privileges assigned to each role.
59-
60-
* label:new[Introduced in 2025.04] Alter the database store format when clearing the data and schema.
61-
62-
[CAUTION]
63-
====
64-
The recreate procedure works only for real user databases and not for composite databases, or the `system` database.
65-
66-
Remember that the recreate procedure results in downtime while the stores get updated.
67-
The time is unbounded and may depend on different factors -- for example, the size of the store, network speed, etc.
68-
====
69+
=== Considerations
6970

7071
The database in question can be in an `online` or `offline` state when it is recreated, but a successful operation starts the database regardless of its previous state.
7172

@@ -77,12 +78,13 @@ For more information, see xref:database-administration/standard-databases/errors
7778

7879
You need xref:authentication-authorization/dbms-administration.adoc#access-control-dbms-administration-database-management[the `CREATE DATABASE` and `DROP DATABASE` privileges] to run the recreate procedure.
7980

80-
To check if the recreation is successful, use the `SHOW DATABASES` command and verify that all allocations have been started.
81-
8281
Additionally, you have the option to modify <<alter-topology-recreate, the topology>> during the recreation process.
83-
However, note that up to Neo4j 2025.04, the store format, access, and enrichment cannot be altered during recreation.
82+
83+
However, note that the store format (up to Neo4j 2025.04), access, and enrichment cannot be altered during recreation.
8484
Starting with 2025.04, the store format can only be altered if the `clearData` option is used.
8585

86+
To check if the recreation is successful, use the `SHOW DATABASES` command and verify that all allocations have been started.
87+
8688
[[recreate-seeding-options]]
8789
== Seeding options
8890

0 commit comments

Comments
 (0)