What you will build
A backend or server-rendered application that stores business data in MySQL. Flash Deploy runs the code; MySQL keeps the data across app releases. Create both products in the same org to use private networking.
Console steps
- Create Managed MySQL and wait for connection details.
- For an app in the same org, copy the private host and port from Connection. Use public endpoints for clients running outside DLEZ.
- Add MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD and MYSQL_DATABASE, or the variable names your code reads, to server-side env.
- Deploy/redeploy the app to apply configuration.
- Run migrations using your app's tooling, then write and read a test record.
- Inspect MySQL Queries, Storage, Bandwidth and Connections. Redeploy and verify the test record still exists.
After deployment
For connection failures, check applied env, org, endpoint and schema. For slow queries, inspect indexes and pagination. Review storage/query limits before they affect production and establish a tested backup/restore procedure.