Is there a way to migrate from first generation cloud sql to second generation with minimal to no downtime?
Dumping my 1st gen DB takes about 30 mintues after I set it to read only (Meaning downtime for me) and I believe import to the 2nd gen will take a long time as well.
What about using a clone while the upgrade is in process and when the upgrade completes copy the difference to the new DB?
I'm using AppEngine, so I was thinking about uploading a new version pointing to the 2nd gen DB while the old version is pointing to the clone. Once the upgrade completes I'll change the version and run a script to copy the missing data.
Could that work? Any better options?
--single-transactionflag so you may not need to set your db to read only and you should get a consistent view of your data. Also the performance of second gen is better so it could be that the import would be faster, you should test this before. - Juan Enrique Muñoz ZolotoochinYou must use mysqldump to perform the export. You cannot use the export provided by Google Cloud Platform Consoleso it's not possible. Here is the link: cloud.google.com/sql/docs/migrate-2nd-gen - bentzy