---
title: "Upgrade the MySQL Version"
description: "Upgrade an Exoscale Managed MySQL service to a newer MySQL version from the Portal or the Exoscale API."
url: https://community.exoscale.com/product/dbaas/service-specific/mysql/how-to/upgrade-version/
product: "MySQL"
section: product
last_updated: 2026-11-24
---
> For AI agents: the documentation index is at https://community.exoscale.com/llms.txt. Every page is available as markdown at `<page URL>index.md` or with `Accept: text/markdown`.

# Upgrade the MySQL Version

Move a Managed MySQL service to a newer MySQL version. The versions you can choose are listed by `exo dbaas type show mysql`, see [MySQL Version Lifecycle](https://community.exoscale.com/product/dbaas/service-specific/mysql/reference/version-lifecycle/index.md).

## Before You Upgrade

An upgrade cannot be reverted, because downgrades are not supported. Test it first on a
[fork](https://community.exoscale.com/product/dbaas/how-to/backups-restore/index.md#forks) of the service, created with
`--mysql-fork-from`.

## Upgrade from the Portal

1. Open the service in the [Portal](https://portal.exoscale.com/).
2. In the menu at the top right of the service page, select **Upgrade**.
3. Select the target version, then select **Upgrade**.

## Upgrade with the API

```bash
echo '{"version":"TARGET_VERSION"}' | \
  exo api update-dbaas-service-mysql SERVICE_NAME -z ZONE
```

Parameters:

- `TARGET_VERSION`: the target version, as a string, for example `"8.4"`.
- `SERVICE_NAME`: name of the service.
- `ZONE`: zone the service runs in, for example `ch-gva-2`.

## During the Upgrade

The upgrade creates a new instance of the service, migrates the data to it, and switches over,
which involves downtime. Make sure your application reconnects.

## Related Pages

- [MySQL Version Lifecycle](https://community.exoscale.com/product/dbaas/service-specific/mysql/reference/version-lifecycle/index.md)
- [Manage Backups and Restores](https://community.exoscale.com/product/dbaas/how-to/backups-restore/index.md)
- [Manage Maintenance Windows](https://community.exoscale.com/product/dbaas/how-to/maintenance-windows/index.md)

