How to integrate with other applications

Modern mysql_client interface:

Relations to new applications are supported via the mysql_client interface. It does not support the legacy mysql interface.

To create a relation with an application that implements the mysql_client interface:

juju integrate mysql-router <application>
juju integrate mysql-router-k8s <application>

To remove a relation:

juju remove-relation mysql-router <application>
juju remove-relation mysql-router-k8s <application>

See compatible charms for integration on the MySQL Router Charmhub pages:

Internal operator user

To rotate the internal router passwords, the relation with backend-database should be removed and related again. That process will generate a new user and password for the application, while retaining the requested database and data.

juju remove-relation mysql-router mysql
juju integrate mysql-router mysql
juju remove-relation mysql-router-k8s mysql-k8s
juju integrate mysql-router-k8s mysql-k8s