Deploy on LXD¶
This guide assumes you have a running Juju and LXD environment.
For a detailed walkthrough of setting up an environment and deploying the charm on LXD, refer to the Tutorial.
Bootstrap a juju controller and create a model if you haven’t already:
juju bootstrap localhost <controller name>
juju add-model <model name>
Deploy MySQL
juju deploy mysql --channel 8.4/edge
See the
juju deploydocumentation for all available options at deploy time.See the Configurations tab for specific MySQL parameters.
Sample output of juju status --watch 1s:
Model Controller Cloud/Region Version SLA Timestamp
mysql overlord localhost/localhost 3.6.14 unsupported 00:52:59+02:00
App Version Status Scale Charm Channel Rev Exposed Message
mysql 8.4.7 active 1 mysql 8.4/edge no Primary
Unit Workload Agent Machine Public address Ports Message
mysql/0* active idle 1 10.234.188.135 3306,33060/tcp Primary
Machine State Address Inst id Base AZ Message
1 started 10.234.188.135 juju-ff9064-0 ubuntu@26.04 Running