Migrating from MySQL 5.5 to MySQL 5.6
Preview
This is a Preview release of Google Cloud SQL MySQL 5.6. As a result, we may make backward-incompatible changes and it is not covered by any SLA or deprecation policy. Developers should take this into account when using this Preview release of Google Cloud SQL MySQL 5.6.
This page discusses how to migrate from MySQL 5.5 to MySQL 5.6. The default instance version when you create an instance is MySQL 5.5. You must explicitly select MySQL 5.6.
If you already have a 5.5 instance and you would like to try 5.6, then follow the migrating instructions given below.
Contents
MySQL 5.6 features
Cloud SQL MySQL 5.6 supports:
- Binary log scalability & group commit
- Improved geo spatial functionality
- Full text search for InnoDB tables
- Various performance improvements, see What Is New in MySQL 5.6
Cloud SQL does not support:
Migrating
The steps for migrating an instance from MySQL 5.5 to 5.6 involve exporting data from the MySQL 5.5 instance and importing that data into the 5.6 instance.
To migrate an instance from MySQL 5.5 to 5.6:
-
Create a Cloud Storage bucket , with read and write access.
-
In the Google Developers Console, go to the Overview page of the MySQL 5.5 instance and click Export .
-
Be sure to export all, unless you only want some of the databases on the instance you are migrating. Also, for large databases, use .gz in the file name to compress the data. For more details see Exporting data .
-
Verify the exported data file exists in the storage bucket. For example, you can use the Google Developers Console to check.
-
Create a new MySQL 5.6 instance. Be sure to select MySQL 5.6 if you are creating a new instance. For more details, see Creating an instance . The MySQL version of an instance is displayed on the Overview page of an instance, under Properties .
-
In the Google Developers Console, go to the Overview page of the MySQL 5.6 instance and click Import . For more details about importing, see Importing data .