The Charm Store will undergo scheduled database maintenance on July 5, 2026 22:00 to July 6, 02:00 UTC. During this time, you may be unable to access charm and bundle metadata or publish updates. No user action is required and services will automatically resume once maintenance is complete.

Platform:

Ubuntu
26.04 24.04 23.10 23.04 22.10 22.04 21.10 21.04 20.10 +1
Channel Revision Published Runs on
latest/edge 1153 05 Jun 2026
Ubuntu 24.04 Ubuntu 23.10 Ubuntu 23.04 Ubuntu 22.10 Ubuntu 22.04 Ubuntu 20.04
latest/edge 1152 05 Jun 2026
Ubuntu 24.04 Ubuntu 23.10 Ubuntu 23.04 Ubuntu 22.10 Ubuntu 22.04 Ubuntu 20.04
latest/edge 1151 05 Jun 2026
Ubuntu 24.04 Ubuntu 23.10 Ubuntu 23.04 Ubuntu 22.10 Ubuntu 22.04 Ubuntu 20.04
latest/edge 1150 05 Jun 2026
Ubuntu 24.04 Ubuntu 23.10 Ubuntu 23.04 Ubuntu 22.10 Ubuntu 22.04 Ubuntu 20.04
latest/edge 201 19 Jun 2024
Ubuntu 24.04 Ubuntu 23.10 Ubuntu 23.04 Ubuntu 22.10 Ubuntu 22.04 Ubuntu 20.04
latest/edge 108 12 Sep 2023
Ubuntu 24.04 Ubuntu 23.10 Ubuntu 23.04 Ubuntu 22.10 Ubuntu 22.04 Ubuntu 20.04
latest/edge 62 10 Feb 2023
Ubuntu 24.04 Ubuntu 23.10 Ubuntu 23.04 Ubuntu 22.10 Ubuntu 22.04 Ubuntu 20.04
8.0/stable 1180 01 Jul 2026
Ubuntu 24.04 Ubuntu 22.04 Ubuntu 20.04
8.0/stable 1179 01 Jul 2026
Ubuntu 24.04 Ubuntu 22.04 Ubuntu 20.04
8.0/stable 1178 01 Jul 2026
Ubuntu 24.04 Ubuntu 22.04 Ubuntu 20.04
8.0/stable 1177 01 Jul 2026
Ubuntu 24.04 Ubuntu 22.04 Ubuntu 20.04
8.0/stable 1159 05 Jun 2026
Ubuntu 24.04 Ubuntu 22.04 Ubuntu 20.04
8.0/stable 1158 05 Jun 2026
Ubuntu 24.04 Ubuntu 22.04 Ubuntu 20.04
8.0/stable 1157 05 Jun 2026
Ubuntu 24.04 Ubuntu 22.04 Ubuntu 20.04
8.0/stable 1156 05 Jun 2026
Ubuntu 24.04 Ubuntu 22.04 Ubuntu 20.04
8.0/stable 1155 05 Jun 2026
Ubuntu 24.04 Ubuntu 22.04 Ubuntu 20.04
8.0/stable 1154 05 Jun 2026
Ubuntu 24.04 Ubuntu 22.04 Ubuntu 20.04
8.0/stable 1139 27 May 2026
Ubuntu 24.04 Ubuntu 22.04 Ubuntu 20.04
8.0/stable 1138 27 May 2026
Ubuntu 24.04 Ubuntu 22.04 Ubuntu 20.04
dpe/candidate 1168 30 Jun 2026
Ubuntu 22.04
dpe/candidate 1167 30 Jun 2026
Ubuntu 22.04
dpe/candidate 1166 30 Jun 2026
Ubuntu 22.04
dpe/beta 1168 30 Jun 2026
Ubuntu 22.04
dpe/beta 1167 30 Jun 2026
Ubuntu 22.04
dpe/beta 1166 30 Jun 2026
Ubuntu 22.04
dpe/edge 1176 30 Jun 2026
Ubuntu 22.04
dpe/edge 1175 30 Jun 2026
Ubuntu 22.04
dpe/edge 1174 30 Jun 2026
Ubuntu 22.04
8.4/edge 1173 30 Jun 2026
Ubuntu 26.04
8.4/edge 1169 30 Jun 2026
Ubuntu 26.04
8.4/edge 1170 30 Jun 2026
Ubuntu 26.04
8.0.19/stable 26 05 May 2022
Ubuntu 22.04 Ubuntu 20.04
8.0.19/edge 26 05 May 2022
Ubuntu 22.04 Ubuntu 21.10 Ubuntu 21.04 Ubuntu 20.10 Ubuntu 20.04
8.0.19/edge 15 26 Apr 2022
Ubuntu 22.04 Ubuntu 21.10 Ubuntu 21.04 Ubuntu 20.10 Ubuntu 20.04
juju deploy mysql-router --channel 8.0/stable

Overview

The mysql-router charm provides a MySQL 8 Router; it proxies database requests from a principal application to a MySQL 8 InnoDB Cluster. MySQL Router handles cluster communication and understands the cluster schema.

It is a subordinate charm that is used in conjunction with the mysql-innodb-cluster charm. It is also used with a principal charm that supports the ‘mysql-shared’ interface. The current list of such charms can be obtained from the Charm Store (the charms officially supported by the OpenStack Charms project are published by ‘openstack-charmers’).

Important: The eoan series is the first series supported by the mysql-innodb-cluster and mysql-router charms. These charms replace the percona-cluster charm starting with the focal series.

Important: This documentation supports version 3.x of the Juju client. See the OpenStack Charm guide if you are using the 2.9.x client.

Usage

The charm is deployed as a subordinate to a principal application and then related to the central mysql-innodb-cluster application:

principal charm A <---> mysql-router A <--->
principal charm B <---> mysql-router B <---> mysql-innodb-cluster
principal charm C <---> mysql-router C <--->

Configuration

See file config.yaml for the full list of configuration options, along with their descriptions and default values.

Deployment

To deploy a MySQL 8 Router for joining, say, Keystone to the cloud database:

juju deploy mysql-router keystone-mysql-router

Note: The mysql-router application is typically given a name that corresponds to the associated principal application.

Add a relation to the principal application (via the shared-db endpoint):

juju integrate keystone:shared-db keystone-mysql-router:shared-db

Then add a relation to the mysql-innodb-cluster application (via the db-router endpoint):

juju integrate keystone-msyql-router:db-router mysql-innodb-cluster:db-router

Important: When network spaces are used, the mysql-router and mysql-innodb-cluster charms must be configured such that the ‘db-router’ endpoint is bound to the same space.

Scale out is accomplished by adding units to the principal application:

juju add-unit keystone

Note: If more than one mysql-router application is placed on the same machine the base-port configuration option is needed to ensure non-conflicting TCP port numbers are used (the default is ‘3306’).

Actions

This section lists Juju actions supported by the charm. Actions allow specific operations to be performed on a per-unit basis. To display action descriptions run juju actions --schema mysql-router. If the charm is not deployed then see file actions.yaml.

  • stop-mysqlrouter
  • start-mysqlrouter
  • restart-mysqlrouter

Documentation

The OpenStack Charms project maintains two documentation guides:

Bugs

Please report bugs on Launchpad.


Help improve this document in the forum (guidelines). Last updated 1 year, 10 months ago.