Platform:
24.04
23.10
23.04
22.10
22.04
21.10
21.04
20.10
20.04
| Channel | Revision | Published | Runs on |
|---|---|---|---|
| latest/edge | 1153 | 05 Jun 2026 | |
| latest/edge | 1152 | 05 Jun 2026 | |
| latest/edge | 1151 | 05 Jun 2026 | |
| latest/edge | 1150 | 05 Jun 2026 | |
| latest/edge | 201 | 19 Jun 2024 | |
| latest/edge | 108 | 12 Sep 2023 | |
| latest/edge | 62 | 10 Feb 2023 | |
| 8.0/stable | 1159 | 05 Jun 2026 | |
| 8.0/stable | 1158 | 05 Jun 2026 | |
| 8.0/stable | 1157 | 05 Jun 2026 | |
| 8.0/stable | 1156 | 05 Jun 2026 | |
| 8.0/stable | 1155 | 05 Jun 2026 | |
| 8.0/stable | 1154 | 05 Jun 2026 | |
| 8.0/stable | 1139 | 27 May 2026 | |
| 8.0/stable | 1138 | 27 May 2026 | |
| 8.0/candidate | 1134 | 27 May 2026 | |
| 8.0/candidate | 1127 | 26 May 2026 | |
| 8.0/candidate | 1126 | 26 May 2026 | |
| 8.0/candidate | 1125 | 26 May 2026 | |
| dpe/candidate | 362 | 22 Jan 2026 | |
| dpe/candidate | 1093 | 22 Jan 2026 | |
| dpe/candidate | 1091 | 22 Jan 2026 | |
| dpe/candidate | 1092 | 22 Jan 2026 | |
| dpe/beta | 362 | 22 Jan 2026 | |
| dpe/beta | 1093 | 22 Jan 2026 | |
| dpe/beta | 1091 | 22 Jan 2026 | |
| dpe/beta | 1092 | 22 Jan 2026 | |
| dpe/edge | 1149 | 03 Jun 2026 | |
| dpe/edge | 1148 | 03 Jun 2026 | |
| dpe/edge | 1147 | 03 Jun 2026 | |
| dpe/edge | 362 | 31 Mar 2025 | |
| 8.4/edge | 1099 | 17 Feb 2026 | |
| 8.4/edge | 1098 | 17 Feb 2026 | |
| 8.4/edge | 1097 | 17 Feb 2026 | |
| 8.0.19/stable | 26 | 05 May 2022 | |
| 8.0.19/edge | 26 | 05 May 2022 | |
| 8.0.19/edge | 15 | 26 Apr 2022 |
juju deploy mysql-router --channel dpe/edge
Interfaces/endpoints
MySQL Router supports modern ‘mysql_client’ interface. Applications can easily connect MySQL using ‘data_interfaces’ library from ‘data-platform-libs’.
Modern mysql_client interface (database endpoint):
Adding a relation is accomplished with juju relate (or juju integrate for Juju 3.x) via endpoint database. Read more about Juju relations (integrations). Example:
# Deploy Charmed MySQL and MySQL Router clusters
juju deploy mysql -n 3
juju deploy mysql-router -n 3 --channel dpe/edge
# Deploy the relevant charms, e.g. mysql-test-app
juju deploy mysql-test-app
# Relate all applications
juju integrate mysql mysql-router
juju integrate mysql-router:database mysql-test-app
# Check established relation (using mysql_client interface):
juju status --relations
# Example of the properly established relation:
# > Integration provider Requirer Interface Type Message
# > mysql:database mysql-router:backend-database mysql_client regular
# > mysql-router:database mysql-test-app:database mysql_client regular
# > ...
Note: In order to relate with Charmed MySQL, every table created by the client application must have a primary key. This is required by the group replication plugin enabled in this charm.
See all the charm interfaces here.