How to complete a blocked migration from Matomo Cloud to On-Premise
The migration process from Matomo Cloud to On-Premise involves installing Matomo, importing your database, and verifying your configuration. However, in some cases the migration is blocked due to two potential issues:
- The Cloud instance runs an
alphaversion. - The exported database does not use a table prefix.
This guide explains how to resolve the version mismatch and migrate successfully.
Install the Cloud alpha version for On-Premise
When migrating from Matomo Cloud to On-Premise, you may encounter a version error if your Cloud instance is running a newer version than the latest available On-Premise release. This can happen because Matomo Cloud updates versions that are not yet publicly released for On-Premise.
If your Cloud instance runs a newer version, the migration may fail with an error such as:
Your Matomo installation is running version 5.7.1… your database has been upgraded to 5.8.0-alpha…
This happens because the database schema version is newer than the On-Premise codebase.
- To resolve this, you need to install the same version as your Cloud instance. Matomo Cloud deploys production-ready and fully stable builds labeled as
alpha. You can safely install the same version for On-Premise. See how to check your Matomo version. - All builds (including
alphaversions) are available at: https://builds.matomo.org/. - You can also update your On-Premise instance to a newer version by enabling development releases (beta or release candidate versions) in Matomo system settings. Learn how to enable beta and RC updates in Matomo.
Migrate without a table prefix
Matomo does not require table prefixes. During installation, a table prefix (for example, matomo_) is simply pre-filled in the database configuration. This default value can be changed or removed.
In Matomo Cloud, table prefixes are not necessary to separate tables as each Cloud site runs on a dedicated database. If your On-Premise setup expects a prefix, you can install Matomo without a table prefix or modify the database dump to add a prefix before importing.
Recommended: Install Matomo without a table prefix
- Install the same version as Cloud (from https://builds.matomo.org/).
- Do not use a table prefix unless absolutely required.
- Import your database dump.
Once the version and database structure match your Cloud setup, Matomo should load without triggering errors or schema warnings.