Skip to content

Commit 94de519

Browse files
authored
Database alias can now be used as default database (neo4j#2265) (neo4j#2270)
Cherry-picked from neo4j#2265
1 parent e42b19f commit 94de519

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-1
lines changed

modules/ROOT/pages/clustering/databases.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ If not set, there are no mode constraints on the server.
473473
== Change the default database
474474

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

477478
. Ensure that the database to be set as default exists, otherwise create it using the command `CREATE DATABASE <database-name>`.
478479
. Show the name and status of the current default database by using the command `SHOW DEFAULT DATABASE`.

modules/ROOT/pages/configuration/configuration-settings.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2092,7 +2092,7 @@ The DBMS settings must be consistent across all configuration files in a cluster
20922092
[frame="topbot", stripes=odd, grid="cols", cols="<1s,<4"]
20932093
|===
20942094
|Description
2095-
a|Name of the default database (aliases are not supported). +
2095+
a|Name of the default database. +
20962096
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.
20972097

20982098
The `initial.dbms.default_database` setting is meant to set the default database *before* the creation of the DBMS.

modules/ROOT/pages/database-administration/aliases/manage-aliases-composite-databases.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
= Managing database aliases in composite databases
55

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

89
////
910
[source, cypher, role=test-setup]

modules/ROOT/pages/database-administration/aliases/manage-aliases-standard-databases.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ A local database alias can only target a database within the same DBMS.
88
A remote database alias may target a database from another Neo4j DBMS.
99
When a query is run against a database alias, it will be redirected to the target database.
1010
The home database for users can be set to an alias, which will be resolved to the target database on use.
11+
Starting with Neo4j 2025.04, a database alias can also be set as the default database.
1112

1213
This page describes managing database aliases for standard databases.
1314
Local and remote database aliases can also be created as part of a xref:database-administration/composite-databases/concepts.adoc[composite database].

modules/ROOT/pages/procedures.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,10 @@ If no topology option is defined, the database will be recreated with the previo
756756
| *Mode* 3+| READ
757757
|===
758758

759+
[NOTE]
760+
====
761+
Starting with Neo4j 2025.04, the default database can also be set to a local or remote database alias.
762+
====
759763

760764
== Configuration and DBMS info
761765

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

1095+
[NOTE]
1096+
====
1097+
Starting with Neo4j 2025.04, the default database can also be set to a local or remote database alias.
1098+
====
1099+
10911100
[role=label--enterprise-edition label--admin-only label--deprecated-2025.01]
10921101
[[procedure_dbms_quarantineDatabase]]
10931102
=== dbms.quarantineDatabase()

0 commit comments

Comments
 (0)