mysql

Charmed MySQL

Channel Revision Published Runs on
8.0/stable 366 31 Mar 2025
Ubuntu 22.04
8.0/stable 367 31 Mar 2025
Ubuntu 22.04
8.0/candidate 366 24 Mar 2025
Ubuntu 22.04
8.0/candidate 367 24 Mar 2025
Ubuntu 22.04
8.0/beta 366 11 Mar 2025
Ubuntu 22.04
8.0/beta 367 11 Mar 2025
Ubuntu 22.04
8.0/edge 379 16 Jun 2025
Ubuntu 22.04
8.0/edge 378 16 Jun 2025
Ubuntu 22.04
juju deploy mysql --channel 8.0/stable
Show information

Platform:

Ubuntu
22.04

Deploy on Juju spaces

The Charmed MySQL operator supports Juju spaces to separate network traffic for:

  • Client - MySQL instance to client data.
  • Instance-replication - cluster instances replication data.
  • Cluster-replication - cluster to cluster replication data.
  • Backup - backup and restore data.

Prerequisites

Deploy

On application deployment, constraints are required to ensure the unit(s) have address(es) on the specified network space(s), and endpoint binding(s) for the space(s).

For example, with spaces configured for instance replication and client traffic:

❯ juju spaces
Name      Space ID  Subnets
alpha     0         10.163.154.0/24
client    1         10.0.0.0/24
peers     2         10.10.10.0/24

The space alpha is default and cannot be removed. To deploy Charmed MySQL operator using the spaces:

juju deploy mysql --channel 8.0/edge \
  --constraints spaces=client,peers \
  --bind "database-peers=peers database=client"

Currently there’s no support for the juju bind command. Network space binding must be defined at deploy time only.

Consequently, a client application must use the client space on the model, or a space for the same subnet in another model, for example:

juju deploy client-app \
  --constraints spaces=client \
  --bind database=client

The two application can be then related using:

juju integrate mysql:database client-app:database

The client application will receive network endpoints on the 10.0.0.0/24 subnet.

The Charmed MySQL operator endpoints are:

Endpoint Traffic
database Client
database-peers Instance-replication
replication-offer, replication Cluster-replication
s3-parameters Backup

If using a network space for the backup traffic, the user is responsible for ensuring that the target object storage URL traffic is routed via the specified network space.