From 7b75eb007f70a08f187528994bf5766ca27e96fb Mon Sep 17 00:00:00 2001 From: nvazquez Date: Mon, 28 Jul 2025 08:40:02 -0300 Subject: [PATCH 1/2] Add force recreate parameter on setup DB script --- source/installguide/management-server/_database.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/installguide/management-server/_database.rst b/source/installguide/management-server/_database.rst index ca70a13e8c..b5ce5f0ea2 100644 --- a/source/installguide/management-server/_database.rst +++ b/source/installguide/management-server/_database.rst @@ -197,6 +197,11 @@ MySQL. See :ref:`install-database-on-separate-node`. the root User is deploying the database and creating the "cloud" User. + - Since 4.21, the databases (cloud, cloud_usage) are only created if they + do not exist. This behavior prevents accidental recreation of existing + databases. The databases recreation can still be invoked by passing the + --force-recreate flag. + - (Optional) There is an option to bypass the creating of the databases, User and granting permissions to the user. This is useful if you don't want to expose your root credentials but still want the database to @@ -228,6 +233,10 @@ MySQL. See :ref:`install-database-on-separate-node`. GRANT process ON *.* TO cloud@`localhost`; GRANT process ON *.* TO cloud@`%`; + .. note:: + Since 4.21, it is required to pass the --force-recreate flag for + schemas recreation. + - (Optional) For encryption\_type, use file or web to indicate the technique used to pass in the database encryption password. Default: file. See :ref:`about-password-key-encryption`. From 74ded86b224f9f89dc0fb2efbe9a29181f53412b Mon Sep 17 00:00:00 2001 From: Nicolas Vazquez Date: Mon, 28 Jul 2025 15:22:45 -0300 Subject: [PATCH 2/2] Update source/installguide/management-server/_database.rst Co-authored-by: Suresh Kumar Anaparti --- source/installguide/management-server/_database.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/installguide/management-server/_database.rst b/source/installguide/management-server/_database.rst index b5ce5f0ea2..d75960167b 100644 --- a/source/installguide/management-server/_database.rst +++ b/source/installguide/management-server/_database.rst @@ -235,7 +235,7 @@ MySQL. See :ref:`install-database-on-separate-node`. .. note:: Since 4.21, it is required to pass the --force-recreate flag for - schemas recreation. + databases recreation. - (Optional) For encryption\_type, use file or web to indicate the technique used to pass in the database encryption password.