Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/ROOT/pages/clustering/databases.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ If not set, there are no mode constraints on the server.
== Change the default database

You can use the procedure xref:procedures.adoc#procedure_dbms_setDefaultDatabase[`dbms.setDefaultDatabase("newDefaultDatabaseName")`] to change the default database for a DBMS.
Starting with Neo4j 2025.04, the default database can also be set to a local or remote database alias.

. Ensure that the database to be set as default exists, otherwise create it using the command `CREATE DATABASE <database-name>`.
. Show the name and status of the current default database by using the command `SHOW DEFAULT DATABASE`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2092,7 +2092,7 @@ The DBMS settings must be consistent across all configuration files in a cluster
[frame="topbot", stripes=odd, grid="cols", cols="<1s,<4"]
|===
|Description
a|Name of the default database (aliases are not supported). +
a|Name of the default database. +
NOTE: This setting is not the same as `dbms.default_database`, which was used to set the default database in Neo4j 4.x and earlier versions.

The `initial.dbms.default_database` setting is meant to set the default database *before* the creation of the DBMS.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
= Managing database aliases in composite databases

Both local and remote database aliases can be created as part of a composite database.
Starting with Neo4j 2025.04, a database alias can also be set as the default database for a composite database.

////
[source, cypher, role=test-setup]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ A local database alias can only target a database within the same DBMS.
A remote database alias may target a database from another Neo4j DBMS.
When a query is run against a database alias, it will be redirected to the target database.
The home database for users can be set to an alias, which will be resolved to the target database on use.
Starting with Neo4j 2025.04, a database alias can also be set as the default database.

This page describes managing database aliases for standard databases.
Local and remote database aliases can also be created as part of a xref:database-administration/composite-databases/concepts.adoc[composite database].
Expand Down
9 changes: 9 additions & 0 deletions modules/ROOT/pages/procedures.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,10 @@ If no topology option is defined, the database will be recreated with the previo
| *Mode* 3+| READ
|===

[NOTE]
====
Starting with Neo4j 2025.04, the default database can also be set to a local or remote database alias.
====

== Configuration and DBMS info

Expand Down Expand Up @@ -1088,6 +1092,11 @@ For more information, see the link:{neo4j-docs-base-uri}/cypher-manual/current/p
| *Mode* 3+| WRITE
|===

[NOTE]
====
Starting with Neo4j 2025.04, the default database can also be set to a local or remote database alias.
====

[role=label--enterprise-edition label--admin-only label--deprecated-2025.01]
[[procedure_dbms_quarantineDatabase]]
=== dbms.quarantineDatabase()
Expand Down