Skip to content

Commit 3c78175

Browse files
Sync docs from Discourse (#511)
Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8327d5e commit 3c78175

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

docs/explanation/e-users.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ There are two types of users in MySQL:
1111
The operator uses the following internal DB users:
1212

1313
* `root` - the [initial/default](https://charmhub.io/mysql/docs/t-manage-passwords) MySQL user. Used for very initial bootstrap only.
14-
* `clusteradmin` - the user to manage entire MySQL InnoDB ClusterSet.
15-
* `serverconfig` - the user to manage local MySQL instance.
14+
* `clusteradmin` - the user to manage replication in the MySQL InnoDB ClusterSet.
15+
* `serverconfig` - the user that operates MySQL instances.
1616
* `monitoring` - the user for [COS integration](https://charmhub.io/mysql/docs/h-enable-monitoring).
1717
* `backups` - the user to [perform/list/restore backups](https://charmhub.io/mysql/docs/h-create-and-list-backups).
1818
* `mysql_innodb_cluster_#######` - the [internal recovery users](https://dev.mysql.com/doc/mysql-shell/8.0/en/innodb-cluster-user-accounts.html#mysql-innodb-cluster-users-created) which enable connections between the servers in the cluster. Dedicated user created for each Juju unit/InnoDB Cluster member.
@@ -87,16 +87,20 @@ To set a predefined password for the specific user, run:
8787
<a name="relation-users"></a>
8888
## Relation/integration users explanations:
8989
90-
The operator created a dedicated user for every application related/integrated with database. Those users are removed on the juju relation/integration removal request. However, DB data stays in place and can be reused on re-created relations (using new user credentials):
90+
The operator created a dedicated user for every application related/integrated with database.
91+
The username is composed by the relation ID and truncated uuid for the model, to ensure there is no
92+
username clash in cross model relations. Usernames are limited to 32 chars as per [MySQL limit](https://dev.mysql.com/doc/refman/8.0/en/user-names.html).
93+
Those users are removed on the juju relation/integration removal request.
94+
However, DB data stays in place and can be reused on re-created relations (using new user credentials):
9195
9296
```shell
9397
mysql> select Host,User,account_locked from mysql.user where User like 'relation%';
94-
+------+------------+----------------+
95-
| Host | User | account_locked |
96-
+------+------------+----------------+
97-
| % | relation-8 | N |
98-
| % | relation-9 | N |
99-
+------+------------+----------------+
98+
+------+----------------------------+----------------+
99+
| Host | User | account_locked |
100+
+------+----------------------------+----------------+
101+
| % | relation-8_99200344b67b4e9 | N |
102+
| % | relation-9_99200344b67b4e9 | N |
103+
+------+----------------------------+----------------+
100104
2 row in set (0.00 sec)
101105
```
102106

docs/reference/r-revision-153.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Canonical Data issues are now public on both [Jira](https://warthogs.atlassian.n
4141
* CLI mysql-shell updated to `8.0.36+dfsg-0ubuntu0.22.04.1~ppa4`
4242
* Backup tools xtrabackup/xbcloud is `8.0.35-30`
4343
* The Prometheus mysqld-exporter is `0.14.0-0ubuntu0.22.04.1~ppa2`
44-
* K8s charms [based on our ROCK OCI](https://github.com/canonical/charmed-mysql-rock) (Ubuntu LTS `22.04.4`) revision `103`
44+
* K8s charms [based on our ROCK OCI](https://github.com/canonical/charmed-mysql-rock) (Ubuntu LTS `22.04.4`) `mysql-image` resource-revision `111`
4545
* Principal charms support the latest Ubuntu 22.04 LTS only
4646

4747
## Technical notes

docs/reference/r-revision-180-181.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Dear community,
88
Canonical's newest Charmed MySQL K8s operator has been published in the [8.0/stable channel].
99

1010
Due to the newly added support for arm64 architecture, the MySQL K8s charm now releases two revisions simultaneously:
11-
* Revision 180 is built for `amd64`
12-
* Revision 181 is built for `arm64`
11+
* Revision 180 is built for `amd64` ( mysql-image r113 )
12+
* Revision 181 is built for `arm64` ( mysql-image r113 )
1313

1414
TO make sure you deploy for the right architecture, we recommend setting an [architecture constraint](https://juju.is/docs/juju/constraint#heading--arch) for your entire Juju model.
1515

@@ -60,7 +60,7 @@ This release of Charmed MySQL requires Juju `v.3.4.3` or `3.5.2+`. See the guide
6060
See the [system requirements] page for more details about software and hardware prerequisites.
6161

6262
### Packaging
63-
This charm is based on the [`charmed-mysql` rock]. It packages:
63+
This charm is based on the [`charmed-mysql` rock] (CharmHub `mysql-image` resource-revision `113`). It packages:
6464
- mysql-server-8.0 `v8.0.37`
6565
- [8.0.37-0ubuntu0.22.04.1]
6666
- mysql-router `v8.0.37`

0 commit comments

Comments
 (0)