Connecting to a DB Instance Through an EIP
This section uses a DDS replica set instance and Windows operating system as an example to describe how to bind an EIP on the DDS console, set a security group, and connect to the DDS DB instance using the Robo 3T tool in your local environment. The procedures are as follows:
Step 1: Bind an EIP
- Log in to the management console.
- On the Instance Management page, click the target DB instance. The Basic Information page is displayed.
Figure 1 Instance management
- In the Node Information area, locate the row that contains the primary node and click Bind EIP.
Figure 2 Node information
- In the displayed dialog box, select a purchased EIP and click OK.
Figure 3 Binding an EIP
A message in the upper right corner is displayed, indicating the request is successfully issued.
Figure 4 EIP being bound
- After the binding is successful, view the EIP in the Node Information area.
Figure 5 EIP bound successfully
Step 2: Set a Security Group
- In the DB Information area on the Basic Information page, verify that SSL is disabled.
Figure 6 Database information
- In the Network Information area, check the database port of the DB instance.
Figure 7 Network information
- In the Network Information area, click the security group name.
- On the Security Groups page, click the security group name.
- Click the Inbound Rules tab and click Add Rule. In the displayed dialog box, add an inbound rule for the database port.
Figure 8 Add Inbound Rule
Step 3: Connect to a DDS DB Instance
- Download Robo 3T from https://robomongo.org/download.
Figure 9 Downloading Robo 3T
- In the displayed dialog box, download robo3t-1.3.1-windows-x86_64-7419c406.exe.
Figure 10 Downloading Robo 3T
- Double-click the robo3t-1.3.1-windows-x86_64-7419c406.exe file to start the installation.
- Run the installed Robo 3T. On the connection information page, click Create.
Figure 11 Connection information
- In the Connection Settings dialog box, set the parameters of the new connection.
- On the Connection tab, set Name to the name of the new connection and Address to the EIP and database port bound to the DDS DB instance.
Figure 12 Connection
- On the Authentication tab, set Database to admin, User Name to rwuser, and Password to the administrator password you set during the creation of the DDS DB instance.
Figure 13 Authentication
- Click Save.
- On the Connection tab, set Name to the name of the new connection and Address to the EIP and database port bound to the DDS DB instance.
- Click Connect to connect to the DDS DB instance.
Figure 14 Connection information
- If the DDS DB instance is successfully connected, the following information is displayed:
Figure 15 Connection succeeded
Last Article: Solving the High CPU Usage Problem
Next Article: Connecting to a DB Instance Through an ECS
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.