I am trying to populate a 2nd gen cloud sql instance (v5.7) with a database dump currently running on 1st gen cloud SQL. It has some triggers:
/*!50003 C
I ran into the same issue and after reading all forums I could, the solution is to set the variable in the control panel from Google Cloud SQL instead of the console.
Enter in the Instances Page: Instances
Select your instance and go to edit. (Hit the three dots button).
Go to the last option, Flags of "Marcas de Cloud SQL".
Put your variable in ON State.
log_bin_trust_function_creators -> ON
I also had to wait a couple of minutes and enter to the Cloud Shell. (I don't have enough reputation to enter the link but look in google for "Using the mysql client in the Cloud Shell"
2nd Generation Cloud SQL