|8.0/stable||196||29 Sep 2023|
|8.0/candidate||196||27 Sep 2023|
|8.0/beta||196||25 Sep 2023|
|8.0/edge||196||08 Sep 2023|
juju deploy mysql --channel 8.0/stable
This is part of the Charmed MySQL Tutorial. Please refer to this page for more information and the overview of the content.
Before we start, make sure your machine meets the following requirements.
sudo snap install multipass && \ multipass launch --cpus 4 --memory 8G --disk 30G --name my-vm charm-dev # tune CPU/RAM/HDD accordingly to your needs
Note: all ‘multipass launch’ params are described here.
Multipass list of commands is short and self-explanatory, e.g. show all running VMs:
As soon as new VM started, enter inside using:
multipass shell my-vm
Note: if at any point you’d like to leave Multipass VM, enter
Ctrl+d or type
All the parts have been pre-installed inside VM already, like LXD and Juju (the files ‘/var/log/cloud-init.log’ and ‘/var/log/cloud-init-output.log’ contain all low-level installation details). Let’s bootstrap Juju to use local LXD:
juju bootstrap localhost overlord
The controller can work with different models; models host applications such as Charmed MySQL. Set up a specific model for Charmed MySQL named ‘tutorial’:
juju add-model tutorial
You can now view the model you created above by entering the command
juju status into the command line. You should see the following:
Model Controller Cloud/Region Version SLA Timestamp tutorial overlord localhost/localhost 2.9.42 unsupported 23:20:53+01:00 Model "admin/tutorial" is empty.