Access Methods
Function Overview
Alauda Database for MySQL 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
Procedure
ClusterIP
-
Obtain the Service name: Based on the instance name, the corresponding Service names are
${name}-read-writeand${name}-read-only. -
Connect using the MySQL Client. For example, to access the read/write service:
-
View member roles:
NodePort
Ensure the field is configured as NodePort.
-
Obtain the NodePort access port:
-
Connect using the MySQL Client:
-
View member roles: