Alauda Database for MySQL-MGR provides multiple ways to access MySQL-MGR clusters, supporting both internal and external cluster access. This section describes how to obtain appropriate connection addresses and establish connections to MySQL-MGR instances using the mysql
client tool both inside and outside the cluster.
For detailed connection examples of client libraries, please refer to How to Access MySQL-MGR Instances
Obtain the Service name: Based on the instance name, the corresponding Service names are ${name}-read-write
and ${name}-read-only
.
Connect using the MySQL Client. For example, to access the read/write service:
View member roles:
Ensure the field is configured as NodePort.
Obtain the NodePort access port:
Connect using the MySQL Client:
View member roles: