Skip to main content

Connecting to Your Own Database

By configuring the connection, you can integrate your own MySQL database into the CloudBase platform to achieve:

  • Generate data models based on existing data tables
  • Use the model operation capabilities provided by CloudBase
  • Directly manage data in the original database

Prerequisites

Before configuring your own MySQL database connection, please ensure:

  • The database has public network access capability
  • A dedicated database user account has been created
  • The database firewall has opened the corresponding ports

Create Connection Configuration

Go to CloudBase Platform/MySQL Database, click the "Add" button in the header

Database Integration Page

Configuration Parameters

ParameterDescriptionRequired
Database TypeSelect MySQL/SQLServer (requires ticket submission)Yes
Configuration NameDisplay name of the connection configurationYes
Configuration IDUnique identifier of the connection configurationYes
Access MethodChoose to connect to your own database or Tencent Cloud databaseYes
Host AddressPublic IP or domain name of the MySQL databaseYes
PortConnection port of the MySQL databaseYes
Database NameName of the database to connect toYes
UsernameDatabase connection usernameYes
PasswordDatabase connection passwordYes
Connection ParametersMySQL connection parametersNo
TimeoutTimeout for connection and accessNo
Note

If you wish to connect to SQLServer database, please contact Tencent architects or submit a ticket

IP Whitelist Configuration

If you need to configure database access IP whitelist, please add the following IP addresses to your MySQL database whitelist:

175.24.211.44, 
175.24.212.162,
175.24.213.48,
175.24.214.104,
175.24.214.93,
49.234.25.245,
49.234.27.58,
49.234.3.160,
49.234.34.31,
49.234.35.33,
Note

All IP addresses must be added to ensure normal service operation.