- By Canonical Data Platform
|8.0/stable||151||20 Apr 2023|
|8.0/candidate||151||20 Apr 2023|
|8.0/beta||151||20 Apr 2023|
|8.0/edge||161||26 May 2023|
juju deploy mysql --channel 8.0/stable
You will need Juju 2.9 to be able to run this command. Learn how to upgrade to Juju 2.9.
Deploy universal operators easily with Juju, the Universal Operator Lifecycle Manager.
How to manage related applications
Relations to new applications are supported via the “mysql_client” interface. To create a relation:
juju relate mysql application
To remove a relation:
juju remove-relation mysql application
We have also added support for the database legacy relation via the
mysql interface. Please note that these interface is deprecated.
juju relate mysql:mysql wordpress
Also extended permissions can be requested using
juju relate mysql:mysql-root wordpress
Rotate applications password
To rotate the passwords of users created for related applications, the relation should be removed and related again. That process will generate a new user and password for the application.
juju remove-relation application mysql juju add-relation application mysql
Internal operator user
The operator user is used internally by the Charmed MySQL Operator, the
set-password action can be used to rotate its password.
- To set a specific password for the operator user
juju run-action mysql/leader set-password password=<password> --wait
- To randomly generate a password for the operator user
juju run-action mysql/leader set-password --wait
Help us improve this documentation
Most of this documentation can be collaboratively discussed and changed on the respective topic in the doc category of the Charmhub forum. See the documentation guidelines if you’d like to contribute.