You can migrate MySQL databases to Cloud SQL for MySQL
instances with Database Migration Service.
Database Migration Service uses the native MySQL replication capabilities to
replicate data from your source database to the destination
Cloud SQL for MySQL instance.

This page provides an overview of the key Database Migration Service
features for homogeneous MySQL migrations:

- [Supported source and destination](https://docs.cloud.google.com/database-migration/docs/mysql/scenario-overview.md.txt#supported-src-and-dest) lists all MySQL
  versions supported by Database Migration Service.

- [Migration data flow](https://docs.cloud.google.com/database-migration/docs/mysql/scenario-overview.md.txt#data-flow-migration-types) provides an end-to-end overview
  of how your data moves in Google Cloud during the migration process.

- [Monitoring](https://docs.cloud.google.com/database-migration/docs/mysql/scenario-overview.md.txt#monitoring)
  gives an introduction for logs and metrics that can
  help you observe the progress and health of your migration job.

## Supported source and destination databases

You can use Database Migration Service to migrate between the same MySQL
version, or from earlier versions of
MySQL to later versions supported in Cloud SQL.

The following table lists all supported MySQL source and destination
database offerings. For the full list of exact versions and cross-version
support, see
[Versions support](https://docs.cloud.google.com/database-migration/docs/mysql/migration-src-and-dest.md.txt).

| Source databases | Destination databases |
|---|---|
| Amazon RDS | Cloud SQL for MySQL |
| Amazon Aurora | Cloud SQL for MySQL |
| Microsoft Azure Database for MySQL | Cloud SQL for MySQL |
| Self-managed MySQL (on premises or on any cloud VM that you fully control) | Cloud SQL for MySQL |

## Migration data flow

For homogeneous MySQL migrations to Cloud SQL,
Database Migration Service connects to the *destination* Cloud SQL instance
and then manages the migration process on its behalf. It's the destination
instance that establishes the connection to your source instance,
but Database Migration Service oversees the process.
[![MySQL migration flow overview](https://docs.cloud.google.com/static/database-migration/docs/images/hmm/mysql_hmm_end2end_flow.svg)](https://docs.cloud.google.com/database-migration/docs/mysql/scenario-overview.md.txt#lightbox-trigger) **Figure 1.** Data movement during Database Migration Service for MySQL migrations. (click to enlarge) ![MySQL migration flow overview](https://docs.cloud.google.com/static/database-migration/docs/images/hmm/mysql_hmm_end2end_flow.svg)

For homogeneous MySQL migrations to Cloud SQL,
Database Migration Service supports *continuous* and *one-time* migration flows.
With continuous migrations, your data is first loaded from a full dump, and then
continuously updated based on data change information surfaced from
database log files.

For a detailed walkthrough of all migration types and phases, see
[Migration types and phases](https://docs.cloud.google.com/database-migration/docs/mysql/migration-types.md.txt).

## Monitoring

[![Example diagram for migration job replication delay in
Database Migration Service.](https://docs.cloud.google.com/static/database-migration/docs/images/hmm/mysql_metrics.png)](https://docs.cloud.google.com/database-migration/docs/mysql/scenario-overview#lightbox-trigger) **Figure 2.** Sample observability diagram in Database Migration Service. (click to enlarge) ![Example diagram for migration job replication delay in
Database Migration Service.](https://docs.cloud.google.com/static/database-migration/docs/images/hmm/mysql_metrics.png)

Database Migration Service provides extensive logging and observability capabilities
to help you monitor the migration progress. These features include real-time
diagnostics for replication delay, as well as detailed logs for
Cloud SQL for MySQL destination instance health and migration job state.

For more details, see
[Migration job metrics](https://docs.cloud.google.com/database-migration/docs/mysql/migration-job-metrics.md.txt).

## What's next

- To learn more about MySQL data and feature support in
  Database Migration Service, see
  [Known limitations](https://docs.cloud.google.com/database-migration/docs/mysql/known-limitations.md.txt).

- To get a complete, step-by-step migration walkthrough, see
  [Get started with Cloud SQL for MySQL migrations](https://docs.cloud.google.com/database-migration/docs/mysql/get-started-with-mysql-migrations.md.txt).