File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,14 @@ Charmed MySQL K8s also introduces database level roles, with permissions tied to
5353Example for a database named ` test ` :
5454
5555``` text
56- mysql> SELECT host, user FROM mysql.user WHERE user LIKE '%_test ';
57- +-----------+------------------+
58- | host | user |
59- +-----------+------------------+
60- | % | charmed_dba_test |
61- +-----------+------------------+
56+ mysql> SELECT host, user FROM mysql.user WHERE user LIKE '%_test_% ';
57+ +-----------+--------------------- +
58+ | host | user |
59+ +-----------+--------------------- +
60+ | % | charmed_dba_test_00 |
61+ +-----------+--------------------- +
6262```
6363
64- The ` charmed_dba_<database> ` role contains every data and schema related permission, scoped to the database it references.
64+ The ` charmed_dba_<database>_<num> ` role contains every data and schema related permission, scoped to the database it references.
65+ The numeric part is introduced in order to differentiate across DBA roles whose first set of characters is the same,
66+ given that database names will be pruned in order to fit into the MySQL role length limit (32 characters).
You can’t perform that action at this time.
0 commit comments