mysql

Charmed MySQL

Channel Revision Published Runs on
8.0/stable 366 Yesterday
Ubuntu 22.04
8.0/stable 367 Yesterday
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 371 Yesterday
Ubuntu 22.04
8.0/edge 370 Yesterday
Ubuntu 22.04
juju deploy mysql --channel 8.0/stable
Show information

Platform:

Ubuntu
22.04

Note: All commands are written for juju >= v.3.0

If you are using an earlier version, check the Juju 3.0 Release Notes.

How to create and list backups

This guide contains recommended steps and useful commands for creating and managing backups to ensure smooth restores.

Prerequisites


Create a backup

Once juju status shows Charmed MySQL as active and idle, you can create your first backup with the create-backup command:

juju run mysql/leader create-backup

If you have a cluster of one unit, you can run the create-backup action on mysql-k8s/leader (which will also be the primary unit).

Otherwise, you must run the create-backup action on a non-primary unit. To find the primary, see juju status or run juju run mysql-k8s/leader get-cluster-status to find the primary unit).

List backups

You can list your available, failed, and in progress backups by running the list-backups command:

juju run mysql/leader list-backups

Help improve this document in the forum (guidelines). Last updated 4 months ago.