The Charmed MySQL Server is a database operator built for the Juju orchestrator. It can be deployed
- on bare metal (using a machine cloud, for instance LXD), or
- on Kubernetes (using a K8s cloud, for instance microk8s or Canonical K8s).
Deploying this charm depends on the substrate of choice
juju add-model mysql
juju deploy mysql-k8s --channel 8.4/stable
juju status --watch 1sjuju add-model mysql
juju deploy mysql --channel 8.4/stable
juju status --watch 1sTo remove the deployment, run:
juju destroy-model mysql --destroy-storage --yesSee the official documentation for more operational guidance, such as deployment on specific clouds, TLS, monitoring, backups, and troubleshooting.
Relations are the standard way to interconnect multiple Juju operators. These relations are defined over well-defined interfaces, that both requirer and provider operators must support.
Example:
juju add-model mysql
juju deploy mysql --channel 8.4/stable
juju deploy mysql-test-app
# Relate MySQL with your application
juju relate mysql:database mysql-test-app:databasemysql_client: standard interface to connect to the database.
To build the charms:
(cd kubernetes && charmcraftlocal pack)
(cd machines && charmcraftlocal pack)Please see the Juju SDK docs for guidelines on enhancements to this charm following best practice guidelines, and CONTRIBUTING.md for further developer guidance.