How To Access MySQL-MGR Instances
There are multiple ways to connect to a MySQL-MGR instance when accessing it from a business application. This section describes how to choose a connection address to access the MySQL-MGR instance and provides examples for demonstration.
Applicable scenarios
Common client programs
The example demonstrates programs using JDBC and GORM clients. Please refer to the corresponding framework documentation for other clients.
When using the code, please modify the relevant variables to your actual values. The variable descriptions are as follows:
JDBC
-
Cluster Internal Access
-
External Access to the Cluster - via NodePort
GORM
-
Cluster Internal Access
-
External Access to the Cluster - via NodePort