Connection Methods
Before connecting to a DB instance, you must buy one first. For details about how to buy a DB instance, see Buying a DB Instance. After buying a DB instance, you can connect to it through a MySQL command-line interface (CLI), graphical user interface (GUI), Java database connectivity (JDBC), or Data Admin Service (DAS). For details about the address and scenario of each connection method, see Table 1. For details about the differences between the private and public addresses, see Connection Address Description.
Connection Methods
Connection Method |
Connection Address |
Scenario |
Comments |
|
---|---|---|---|---|
Not required |
Huawei Cloud DAS makes DB instance management secure and efficient from a web-based console. You can connect to and manage DB instances through DAS. The permission required for remotely connecting to DB instances through DAS has been enabled for you by default. Using DAS to connect to your DB instance is recommended, which is more secure and convenient. |
|
||
MySQL CLI |
Private IP address |
A private IP address is provided by default. When your applications are deployed on an ECS that is in the same region and VPC as your TaurusDB instance, you are advised to connect the ECS to the instance over a private IP address. |
|
|
EIP |
If you cannot access your TaurusDB instance over a private IP address, bind an EIP to the instance and connect it to the ECS (or a public network host) over the EIP. |
|
||
MySQL-Front |
EIP |
MySQL-Front is a Windows front end for MySQL databases. It allows you to interact with MySQL databases through a GUI, including connecting to a database, running SQL commands, and managing tables and records. |
- |
|
Applications |
Private IP address or EIP |
You can access DB instances through JDBC. |
- |
|
Private IP address or EIP |
You can access DB instances through Python. |
- |
Connecting to a DB Instance over a Private or Public Network Using CLI
Table 2 lists how to use a CLI to connect to a TaurusDB instance over a private or public network.

Connection Method |
IP Address |
Security Group Rule |
Comments |
---|---|---|---|
Private IP address |
|
|
|
You need to purchase an EIP. For pricing details, see EIP Billing. |
To access a DB instance from resources outside the security group that the DB instance is associated with, you need to configure an inbound rule for the security group. For details, see Configuring Security Group Rules. |
|
Connection Address Description
- Private IP address
This IP address is always bound to the primary node. If your applications are deployed on a server that is in the same VPC as your DB instance, you can connect to the DB instance using this IP address to perform read and write operations. If a failover occurs, this IP address will be bound to the new primary node and can still be used for read and write operations.
Figure 2 Private IP address - Public IP address (EIP)
After you buy a DB instance and bind an EIP to it, you can use this IP address to perform read and write operations on the DB instance. Just like a private IP address, an EIP is always bound to the primary node for read and write operations.
Figure 3 Public IP address (EIP)
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot