Adding a Self-Built Database
Add self-built database assets.
Prerequisites
- You have obtained credentials for logging in to the management console.
- DSC has been allowed to access the database assets. For details, see Allowing or Disallowing Access to Cloud Assets.
- The self-built database engine, version, and database server address have been obtained. There are available IP addresses in the corresponding subnet.
Constraints
Database types and versions supported by DSC can be added. For details, see Table 1.
| Database Type | Version |
|---|---|
| MySQL | 5.6, 5.7, 5.8, and 8.0 |
| SQL Server |
|
| PostGreSQL | 11, 10, 9.6, 9.5, 9.4, and 9.1 |
| Oracle | 10 and 12 |
Procedure
- Log in to the management console.
- Click
in the upper left corner of the management console and select a region or project. - In the navigation pane on the left, click
and choose . - In the navigation pane, choose Assets and select the Database tab and then the Unauthorized tab. Figure 1 Unauthorized database assets
- In the upper left corner of unauthorized database assets, click Add Self-Built Database.
- In the displayed dialog box, set database parameters. For details, see Table 2. Figure 2 Adding a self-built database
Table 2 Parameters for adding a self-built database Parameter
Description
Example Value
Asset
Database name
N/A
Region
Region where the account is used for login
N/A
ECS
Database instance created in ECS
N/A
Security Group
Name of the security group to which the ECS instance belongs
default
Database Engine
Database engine
Value options: MySQL, PostgreSQL, SQLServer, and Oracle
MySQL
Version
Version number corresponding to the database engine
5.6
Database Server Address
IP address of the database server
N/A
Port
Port number of the database server
N/A
Database
Self-built database name
N/A
Username
Username for logging in to the database server
N/A
Password
Password for logging in to the database server
N/A
- Click OK. Figure 3 Connectivity test
DSC will check the connectivity of the added database, and the connectivity status of the added database is Checking.- If DSC can access the added database, the connectivity status is Succeeded.
- If the DSC cannot access the added database, the connectivity status Failed. View the failure cause and follow the instructions described in How Do I Troubleshoot the Failure in Connecting to the Added Database? to handle it.
Related Operations
- Allow or disallow access to database assets. For details, see Allowing or Disallowing Access to Cloud Assets.
- Delete database assets. For details, see Editing a Database.
- Edit database assets. For details, see Deleting a Database.
Last Article: Adding a DWS database
Next Article: Editing a Database
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.