Skip to content

Commit 10b2f8b

Browse files
committed
Allow database names to start with a digit
We have relaxed the database naming rules to allow a database name to start with a digit. Update docs to reflect this.
1 parent 68e3581 commit 10b2f8b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ m|+++0+++
798798
|Description
799799
a|Names of the databases allowed on this server; all others are denied. Empty means all are allowed. This configuration can be overridden when enabling the server or altered at runtime without changing this setting. Exclusive with `server.initial_denied_databases`.
800800
|Valid values
801-
a|A comma-separated set where each element is a valid database name containing only alphabetic characters, numbers, dots, and dashes with a length between 3 and 63 characters, starting with an alphabetic character but not with the name `system`.
801+
a|A comma-separated set where each element is a valid database name containing only alphabetic characters, numbers, dots, and dashes with a length between 3 and 63 characters, starting with an alphabetic character or digit but not with the name `system`.
802802
|Default value
803803
m|++++++
804804
|===
@@ -814,7 +814,7 @@ m|++++++
814814
|Description
815815
a|Names of the databases not allowed on this server. Empty means nothing is denied. This configuration can be overridden when enabling the server or altered at runtime without changing this setting. Exclusive with `server.initial_allowed_databases`.
816816
|Valid values
817-
a|A comma-separated set where each element is a valid database name containing only alphabetic characters, numbers, dots, and dashes with a length between 3 and 63 characters, starting with an alphabetic character but not with the name `system`.
817+
a|A comma-separated set where each element is a valid database name containing only alphabetic characters, numbers, dots, and dashes with a length between 3 and 63 characters, starting with an alphabetic character or digit but not with the name `system`.
818818
|Default value
819819
m|++++++
820820
|===
@@ -2169,7 +2169,7 @@ Once it is created, the setting is not valid anymore.
21692169

21702170
To set the default database, use the xref:/clustering/databases.adoc#cluster-default-database[`dbms.setDefaultDatabase()`] procedure instead.
21712171
|Valid values
2172-
a|A valid database name containing only alphabetic characters, numbers, dots, and dashes with a length between 3 and 63 characters, starting with an alphabetic character but not with the name system.
2172+
a|A valid database name containing only alphabetic characters, numbers, dots, and dashes with a length between 3 and 63 characters, starting with an alphabetic character or digit but not with the name system.
21732173
|Default value
21742174
m|+++neo4j+++
21752175
|===
@@ -4979,7 +4979,7 @@ m|+++false+++
49794979
|Description
49804980
a|List of databases for which to prevent write queries. Databases not included in this list maybe read_only anyway depending upon the value of <<config_server.databases.default_to_read_only,server.databases.default_to_read_only>>.
49814981
|Valid values
4982-
a| A comma-separated set where each element is a valid database name containing only alphabetic characters, numbers, dots, and dashes with a length between 3 and 63 characters, starting with an alphabetic character but not with the name system.
4982+
a| A comma-separated set where each element is a valid database name containing only alphabetic characters, numbers, dots, and dashes with a length between 3 and 63 characters, starting with an alphabetic character or digit but not with the name system.
49834983
|Default value
49844984
m|++++++
49854985
|===
@@ -4995,7 +4995,7 @@ m|++++++
49954995
|Description
49964996
a|List of databases for which to allow write queries. Databases not included in this list will allow write queries anyway, unless <<config_server.databases.default_to_read_only,server.databases.default_to_read_only>> is set to true.
49974997
|Valid values
4998-
a|A comma-separated set where each element is a valid database name containing only alphabetic characters, numbers, dots, and dashes with a length between 3 and 63 characters, starting with an alphabetic character but not with the name system.
4998+
a|A comma-separated set where each element is a valid database name containing only alphabetic characters, numbers, dots, and dashes with a length between 3 and 63 characters, starting with an alphabetic character or digit but not with the name system.
49994999
|Default value
50005000
m|++++++
50015001
|===

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ See link:{neo4j-docs-base-uri}/cypher-manual/{page-version}/syntax/naming[Cypher
88
Naming rules for databases are as follows:
99

1010
* Length must be between 3 and 63 characters.
11-
* The first character of a name must be an ASCII alphabetic character.
11+
* The first character of a name must be an ASCII alphabetic or numeric character.
1212
* Subsequent characters must be ASCII alphabetic or numeric characters, dots or dashes; `[a..z][0..9].-`.
1313
* Names cannot end with dots or dashes.
1414
* Names are case-insensitive and normalized to lowercase.
@@ -17,7 +17,7 @@ Naming rules for databases are as follows:
1717
[NOTE]
1818
====
1919
The `-` (dash) and `.` (dot) characters are not legal in Cypher variables.
20-
Names with a `-` in them must be enclosed within backticks.
20+
Names containing a `-` or tha begin with a numeric character must be enclosed within backticks.
2121
For example, `CREATE DATABASE ++`main-db`++` is a valid database name.
2222
Database names are the only identifier for which dots do not need to be escaped.
2323
For example `main.db` is a valid database name.

0 commit comments

Comments
 (0)