RaseefDocs
Templates

MySQL

Relational SQL database, ready to run as a private service.

SettingValue
Imagelibrary/mysql:8.4
Port3306 (TCP, private)
StorageVolume at /var/lib/mysql
Minimum size0.5 vCPU · 512 MiB

Create it

In your project, choose Create, then MySQL from the templates. Raseef creates the service with the settings below, generates its secrets and deploys it. Its data lives on its own volume.

Connect from your app

MySQL is a private service: it has no public address. Other services in the same environment reach it on its private address and port, which Raseef offers as variables you can reference.

Add a variable to your app that references the DATABASE_URL of this service. If you named the service mysql:

Variables of your app
DATABASE_URL=${{ mysql.DATABASE_URL }}

At deploy time the reference becomes a full connection string:

mysql://raseef:<MYSQL_PASSWORD>@<private address>:3306/raseef

See Variables for how references work.

Variables

Generated once, when the service is created, and stored encrypted:

VariableValue
MYSQL_ROOT_PASSWORDA random password, 64 hex characters
MYSQL_PASSWORDA random password, 64 hex characters

Set by the template:

VariableValue
MYSQL_DATABASEraseef
MYSQL_USERraseef

Every variable of a template service is managed by Raseef and cannot be edited. The workspace owner can reveal the secrets from the service panel; each reveal is recorded in the audit log.

Data and backups

The data directory /var/lib/mysql is a persistent volume: it survives restarts and deploys. A service with a volume runs a single replica, and a deploy stops the old replica before starting the new one, so expect a short interruption. See Volumes for sizes and backups.

Version

The service runs library/mysql:8.4, pinned by digest when the service is created and kept on that exact image afterwards. Template catalog version 2026-10-19.1.

Upstream documentation: library/mysql.

On this page