How to integrate with other applications

Modern mysql_client interface:

Relations to new applications are supported via the mysql_client interface.

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

juju relate mysql-router <application>
juju relate 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 relate mysql-router mysql
juju remove-relation mysql-router-k8s mysql-k8s
juju relate mysql-router-k8s mysql-k8s