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 also introduces database level roles, with permissions tied to eac
53
53
Example for a database named ` test ` :
54
54
55
55
``` 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
+ +-----------+--------------------- +
62
62
```
63
63
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