Skip to content

MySQL

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

Use the 8.4 long term support (LTS) branch for new add-ons. MySQL 8.0 reached its end of life on 30 April 2026 and Percona Server 8.0 had its final release in June 2026, so we recommend you migrate your existing 8.0 add-ons to 8.4.

DedicatedDev
5.7 (EOL)8.0.46 (EOL)
8.0.46 (EOL)
8.4.10
โš ๏ธ
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

Clever Cloud provides an add-on Migration/Upgrade tool. You can access it from the Console, in the left menu when an add-on is selected. It allows to choose a higher plan, a new version or another deployment zone.

A migration process creates new instances, moves your data into it and stops the old ones if the process ended correctly. In case of a failure during migration, new instances are deleted and you go back to the original ones. The duration may vary depending on how much data your add-on has. Your database becomes read only for the entire duration.

If you want to restart your add-on or update to the last supported version of the current branch, migrate it to the same plan, version, zone.

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

โš ๏ธ
Using direct access is a trade-off: if you migrate your add-on, you will need to generate the hostname and port again, so your application will need to update that environment, while using a proxy does not change anything.

All our dedicated MySQL databases are served via a proxy. To reduce the latency you can bypass this proxy by generating direct hostname and port for the add-on. You can do it by clicking the “Generate direct hostname and port” on the add-on dashboard.

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

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

โš ๏ธ
As Shared databases (DEV) are shared between multiple applications and delays could appear in case of an high demand. If this delays create problems in your application or are problematic, we recommend you to use a dedicated database (XS plans and above).

๐Ÿ”‘ 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

Did this documentation help you ?