I'm trying to migrate a production database to google cloud sql using the replication method described here. However, when importing the mysql dump file google cloud sql returns the error ''Cannot Add Foreign Key Constraint''.
I've checked if there are any foreign key vialotions using this method. However, there are no violations in the database.
Therefore, I've tracked down the problem to be due to circular references. The only option seems to be to disable FOREIGN_KEY_CHECKS during the import. However, I cannot find any method to set this flag.
Are there any recommendations on how to continue from here?