Skip to content

Commit a5d29c0

Browse files
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 <[email protected]>
1 parent 9cd0be3 commit a5d29c0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/installguide/management-server/_database.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@ MySQL. See :ref:`install-database-on-separate-node`.
197197
the root User is deploying the database and creating the "cloud"
198198
User.
199199

200+
- Since 4.21, the databases (cloud, cloud_usage) are only created if they
201+
do not exist. This behavior prevents accidental recreation of existing
202+
databases. The databases recreation can still be invoked by passing the
203+
--force-recreate flag.
204+
200205
- (Optional) There is an option to bypass the creating of the databases,
201206
User and granting permissions to the user. This is useful if you don't
202207
want to expose your root credentials but still want the database to
@@ -228,6 +233,10 @@ MySQL. See :ref:`install-database-on-separate-node`.
228233
GRANT process ON *.* TO cloud@`localhost`;
229234
GRANT process ON *.* TO cloud@`%`;
230235
236+
.. note::
237+
Since 4.21, it is required to pass the --force-recreate flag for
238+
databases recreation.
239+
231240
- (Optional) For encryption\_type, use file or web to indicate the
232241
technique used to pass in the database encryption password.
233242
Default: file. See :ref:`about-password-key-encryption`.

0 commit comments

Comments
 (0)