I have plenty of legacy apps and some of them or their installed packages have been coded in a way that if the insertion returns a 1062 duplicate error then the app's code will call an update query, e.g. if($insertion_failure_code=="1062") update_query($params). Yes the applications could be coded better to avoid this but the fact is many are not and I don't see it being practical to find and update all such coding instances and then attempt a Cloud SQL migration. I am quite sure I'm not the only one who would face this issue.
I really do want to migrate to Cloud SQL and so hoping for some workaround on this issue. Else I'm just forced to consider other platforms when I don't want to.
What else could I do to get it to work? Or are you suggesting I just don't consider Cloud SQL for now and look at other options?
Unfortunately, it is not possible to skip these errors on the slave instance. There is an open Feature Request [1] for Cloud SQL to allow users to modify '--slave-skip-errors’ Flag on MySQL to allow the replication process to continue.
You can check to make sure your source database meets the requirements listed here for replication in Cloud SQL [2] and these best practices regarding long running exports/imports [3]. The blue box here [4] about the data could also be relevant for your error.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-cloud-sql-discuss/N5URxQatCo0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-cloud-sql-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/5a89c2d5-2f60-43c8-890c-5bcb1c604252%40googlegroups.com.