Skip to content

Overview

MySQL is an open source relational database management system (RDBMS). Clever Cloud’s add-on uses the Percona Server, a 100% compatible open source implementation, with performances improvements and more features.

Supported Versions

Two long term support (LTS) branches are available for new add-ons: 8.4, used by default, and 9.7. MySQL 5.7 and 8.0 are end-of-life and Percona Server 8.0 had its final release in June 2026, so we recommend you migrate your existing add-ons on these branches to 8.4 or 9.7.

DedicatedDev
5.7 (EOL)8.0.46 (EOL)
8.0.46 (EOL)
8.4.10
9.7.1
DEV plan is free, for testing purposes only. It has lower performances, no backups, extensions nor SLA. You can find more info in the FAQ

Database Daily Backup and Retention

By default, Clever Cloud performs a free backup every day, with a retention of seven days. Retention and frequency can be customized by contacting Clever Cloud Support.

Each backup can be found in the add-on dashboard in the web console, along with the credentials.

Migrating from an old database

Some applications require a populated database to run properly. If you want to import your SQL dump, you can use several methods:

  1. The WebGUI (PhpMyAdmin).
  2. Command line tool for MySQL administration
  3. Any MySQL client such as MySQL Workbench

If you need to import a very large dump, contact Clever Cloud Support.

Migrate your database

To apply security updates, change the plan, upgrade the version, or move the add-on to another region, migrate it from its Migrate / Upgrade menu in the Console. A migration creates a new server, copies your data to it, then switches the add-on to it.

The duration depends on how much data the add-on holds. During the migration, the database is read-only, except Redis, which accepts writes until the switch. If a step fails, Clever Cloud tries to roll the migration back to the original server.

Replication

You can add up to two replicas to an existing MySQL database on Clever Cloud to enhance performance and reliability. Replication is available for MySQL 5.7 and later versions. Read-only replicas use logical replication based on the binary log and can be deployed in a different availability zone (AZ) or region on request.

If a primary server isn’t available, a replica can be promoted as a standalone server and linked to applications.

Note

Replica creation and promotion aren’t yet available through the API or the Console. To create or configure replicas, or to promote one, contact your sales representative or Clever Cloud support.

Direct access

A proxy serves all dedicated MySQL databases. To reduce the latency, you can bypass this proxy with a direct hostname and port for the add-on: click “Generate direct hostname and port” on the add-on dashboard.

This action adds new environment variables to reach the add-on without any proxy.

Direct access after a migration

A migration moves the database to a new server, with a new direct hostname and port. Clever Cloud updates the variables of the add-on, and redeploys its running linked applications. Update the direct hostname and port wherever you copied them.

Encryption at rest

Encryption at rest is available on MySQL. You can have more information on the dedicated page.

ProxySQL

ProxySQL is a tool that acts like a proxy between your application and your MySQL add-on. Instead of connecting to your MySQL add-on, you can connect to the local ProxySQL and it will forward all your requests to your MySQL add-on.

This allows you to let ProxySQL take care of some interesting features like connection pooling or leader / follower setup.

You can learn more about ProxySQL on the dedicated documentation page

Plans

Shared databases

Shared databases (DEV) serve several applications, so delays can appear during high demand. If these delays affect your application, use a dedicated database, from the XS plans.

🔑 Rights and permissions

Clever Cloud configures and maintains the MySQL server. You have standard access to the database with ALL privileges, but some administrative operations and server settings aren’t available directly. This ensures optimal performance and security.

Authorized actions:

  • Manage tables (create, delete…).
  • Manage indexes.

The following actions aren’t available directly:

  • Database administration (for example you won’t be able to create new databases).
  • Users administration (you won’t be able to create other users than the one handled with our control plane, i.e. the base owner and read-only users).
  • Server configuration update.
  • Plugins installation.
  • Replica creation.
  • Backup frequency or retention control.
  • Create triggers or functions (DEV plans only).

If your use case requires specific server parameters or one of these restricted operations, contact Clever Cloud support to discuss feasibility.

Last updated on