diff --git a/modules/ROOT/pages/clustering/databases.adoc b/modules/ROOT/pages/clustering/databases.adoc index 912f74dad..ad06bab48 100644 --- a/modules/ROOT/pages/clustering/databases.adoc +++ b/modules/ROOT/pages/clustering/databases.adoc @@ -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 `. . Show the name and status of the current default database by using the command `SHOW DEFAULT DATABASE`. diff --git a/modules/ROOT/pages/configuration/configuration-settings.adoc b/modules/ROOT/pages/configuration/configuration-settings.adoc index 62e71d6e4..a5382d127 100644 --- a/modules/ROOT/pages/configuration/configuration-settings.adoc +++ b/modules/ROOT/pages/configuration/configuration-settings.adoc @@ -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. diff --git a/modules/ROOT/pages/database-administration/aliases/manage-aliases-composite-databases.adoc b/modules/ROOT/pages/database-administration/aliases/manage-aliases-composite-databases.adoc index 6fcf82c0a..2b190c698 100644 --- a/modules/ROOT/pages/database-administration/aliases/manage-aliases-composite-databases.adoc +++ b/modules/ROOT/pages/database-administration/aliases/manage-aliases-composite-databases.adoc @@ -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] diff --git a/modules/ROOT/pages/database-administration/aliases/manage-aliases-standard-databases.adoc b/modules/ROOT/pages/database-administration/aliases/manage-aliases-standard-databases.adoc index 4efac4a30..48ab2f23b 100644 --- a/modules/ROOT/pages/database-administration/aliases/manage-aliases-standard-databases.adoc +++ b/modules/ROOT/pages/database-administration/aliases/manage-aliases-standard-databases.adoc @@ -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]. diff --git a/modules/ROOT/pages/procedures.adoc b/modules/ROOT/pages/procedures.adoc index 1947e21c8..23f407762 100644 --- a/modules/ROOT/pages/procedures.adoc +++ b/modules/ROOT/pages/procedures.adoc @@ -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 @@ -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()