-
Click MySQL-PXC in the left navigation bar.
-
Expand the cluster and click on the namespace.
-
Click on Instance Name.
-
In the User Management tab, obtain the username and password.
For In-Cluster Access
After the instance is created, the information for in-cluster access can be found in the instance's Access Methods tab.
For External Access
First, you need to add TCP listener ports for the LoadBalancer in the instance's Access Methods tab to receive connection requests from external clients.
Procedure
-
In the External Access area, click Add Listener Port.
-
Choose the LoadBalancer.
-
Refer to the following instructions to configure the relevant parameters.
-
Click Add.
-
Access the instance
It is recommended to use the Standard MySQL Client to access the MySQL-PXC instance.
-
Access from within the cluster: In the instance details page, click the Terminal Console in the top right corner to connect to the MySQL nodes. If you are connecting to a node within this instance, you can omit the -h parameter.
mysql -h{Internal Routing Name}.{Namespace Name}.svc.cluster.local -u{Username} -p{Password}
or
mysql -h{Internal Routing IP Address} -u{Username} -p{Password}
-
Access from outside the cluster
mysql -h{LoadBalancer IP} -P{Listener Port} -u{Username} -p{Password}