Persistent template
A single MySQL server in your project, deployed from the
mysql-persistent template. Data lives on a persistent volume; you operate the
database.
No credit card required · Free during the Alpha phase · View pricing
A relational database for applications in the same project.
MySQL with InnoDB for applications that expect MySQL — CMSs, e-commerce platforms and application frameworks with a MySQL driver.
One server per template instance. Suited to development, CI, test environments and workloads that tolerate a restart.
You hold the root password and own backups and upgrades. For a database the platform operates, see Databases.
An OpenShift template: one set of parameters, processed into the objects below.
mysql-persistent plus your parameters
User, password, root password, database name
Sized by VOLUME_CAPACITY, mounted as the data directory
One pod, Recreate strategy, port 3306
oc new-app --template=mysql-persistent with
-p parameters. List every parameter with oc process --parameters.mysql-ephemeral variant
keeps data in the pod's filesystem and loses it on every restart.# see the template's parameters $ oc process --parameters mysql-persistent -n openshift # deploy with a 10 GiB data volume $ oc new-app --template=mysql-persistent \ -p DATABASE_SERVICE_NAME=mysql \ -p MYSQL_DATABASE=app \ -p VOLUME_CAPACITY=10Gi # read the generated credentials $ oc extract secret/mysql --to=-
What the template does not do for you.
mysqldump run through oc exec or a CronJob, and store them
outside the database's own volume.MYSQL_VERSION. Take a dump before changing it; test major-version upgrades on a
copy first.MEMORY_LIMIT or on the workload.Standard Kubernetes objects in your own project.
mysql:3306 (the DATABASE_SERVICE_NAME). No Route is created, so the
database is not reachable from outside the cluster.oc set env --from=secret/mysql instead of copying them.From the console's database catalogue, or with oc new-app --template=mysql-persistent.
Hosted in the Netherlands · EU data residency · 100% renewable energy