This is an automated email from the ASF dual-hosted git repository. sureshanaparti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudstack-documentation.git
The following commit(s) were added to refs/heads/main by this push: new a5d29c05 Add force recreate parameter on setup DB script (#534) a5d29c05 is described below commit a5d29c05a7c5ba299ab1b9e899d64b3b60cb819a Author: Nicolas Vazquez <nicovazque...@gmail.com> AuthorDate: Tue Jul 29 01:02:38 2025 -0300 Add force recreate parameter on setup DB script (#534) * Add force recreate parameter on setup DB script * Update source/installguide/management-server/_database.rst Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anapa...@gmail.com> --- 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 ca70a13e..d7596016 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 + databases 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`.