Stay organized with collections
Save and categorize content based on your preferences.
This section provides an overview of how to migrate your database to
Spanner. The process to migrate to Spanner might vary
depending on factors like your source database, data size, downtime requirements,
application code complexity, sharding schema, custom functions or
transformations, and failover and replication strategies.
A typical Spanner migration involves the following stages:
Depending on the stage of the migration you're in, you
might need to consult your organization's network administrator, database
administrator, or application developers to complete that migration steps
outlined.
You can use the previously described high-level migration stages if you want to
move a one-time dump into Spanner, or complete a large-scale
production migration. Depending on your use case, what you do in each of the
stages can change significantly.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Migration overview\n\nThis section provides an overview of how to migrate your database to\nSpanner. The process to migrate to Spanner might vary\ndepending on factors like your source database, data size, downtime requirements,\napplication code complexity, sharding schema, custom functions or\ntransformations, and failover and replication strategies.\n\nA typical Spanner migration involves the following stages:\n\n1. [Assess your migration](/spanner/docs/assess-migration).\n2. [Migrate your schema](/spanner/docs/schema-migration).\n3. [Modify your application code](/spanner/docs/application-migration).\n4. [Optimize your schema and application performance](/spanner/docs/optimize-schema-performance).\n5. [Migrate your data](/spanner/docs/data-migration).\n6. [Validate the migration](/spanner/docs/data-validation).\n7. [Configure cutover and fallback mechanisms](/spanner/docs/cutover-fallback-mechanisms).\n\nDepending on the stage of the migration you're in, you\nmight need to consult your organization's network administrator, database\nadministrator, or application developers to complete that migration steps\noutlined.\n\nYou can use the previously described high-level migration stages if you want to\nmove a one-time dump into Spanner, or complete a large-scale\nproduction migration. Depending on your use case, what you do in each of the\nstages can change significantly.\n\nSource-specific migration guides\n--------------------------------\n\n- MySQL: [Migrate from MySQL to Spanner](/spanner/docs/migrating-mysql-to-spanner)."]]