Custom MySQL Database Configuration
Through connection configuration, you can integrate your self-hosted MySQL database into the cloud development platform, enabling:
- Generate data models based on existing data tables
- Utilize the model operation capabilities provided by cloud development
- Directly manage data in the original database
Creating a Connection Configuration
Creating an Entry Point
- Database Configuration Management Interface
- Configuration options when creating a data model
Configuration Parameters
Parameter | Description | Required |
---|---|---|
Configuration Name | Display name for the connection configuration | Yes |
Configuration ID | Unique identifier for the connection configuration | Yes |
Host Address | Public IP or domain name of the MySQL database | Yes |
Port | Connection port for the MySQL database | Yes |
Database Name | Name of the database to connect to | Yes |
Username | Database connection username | Yes |
Password | Database connection password | Yes |
Connection Parameters | MySQL connection parameters | No |
Timeout | Timeout for connection and access | No |
IP Allowlist Configuration
To ensure data security, please add the following IP addresses to the database's allowlist:
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 the service runs properly.
Connection Configuration Management
Usage Limitations
Connection configuration used by the data model:
- Non-deletable
- Non-modifiable configuration
If you need to modify the configuration:
- Create a new connection configuration
- Delete the existing data model
- Recreate the data model using the new configuration
- Delete the old connection configuration
Best Practices
- Create a dedicated database account and grant only necessary permissions
- Regularly update the allowlist configuration to ensure security
- Use appropriate connection parameters to optimize performance
- Set an appropriate timeout to prevent connection hanging