Deploy MySQL
CloudStation provides a streamlined way to deploy MySQL, offering a Standalone Instance that suits various project needs.
Standalone MySQL
A standalone MySQL instance is ideal for development, small projects, or services that do not require high availability. Below, we cover how to deploy, connect, and manage your MySQL instance.
Deployment Options
You can deploy a standalone MySQL database using one of the following methods:
- Using the
+ New
button – Navigate to your Project Canvas and add a new MySQL service. - From the Template Marketplace – Deploy MySQL through a pre-configured template.
Deployed Service
Once deployed, your standalone MySQL service runs in your project, using the official MySQL Docker image.
Connecting to MySQL
To connect to MySQL from another service within your project, use the automatically generated environment variables:
MYSQLHOST
MYSQLPORT
MYSQLUSER
MYSQLPASSWORD
MYSQLDATABASE
MYSQL_URL
External Connections
You can connect to MySQL externally (outside of your CloudStation project) via the TCP Proxy, which is enabled by default.
Note: Using the TCP Proxy may incur additional Network Egress charges.
Modifying the Deployment
Since MySQL is deployed using an official Docker image, you can customize its configuration following the Docker Hub documentation.
Backups and Observability
For production environments, regular backups and monitoring are essential. Consider implementing:
- Automated Backups – Protect your data with scheduled backups. CloudStation offers a native backup solution.
- Monitoring – Use observability tools to track database health and performance.
Additional Resources
While CloudStation simplifies deployment, your MySQL instance remains fully customizable. To optimize your setup, consult the official documentation:
Edit this file on GitHub