We want to create a Cloud SQL replica of an external MySQL database. I have tried the steps in Replicating from an external server, but I ended up with a read-only replica.
I tried creating a new MySQL instance, then when I tried loading the dump produced by mysqldump --master-data=1
, I got the following error:
Import failed: Import error: exit status 1 ERROR 1227 (42000) at line 18: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
Line 18 is:
SET @@SESSION.SQL_LOG_BIN= 0;
According to the manual
you need SUPER
privilege to set sql_log_bin
.
I need to create a second schema on the replica that needs to be writable. Is there a way to set up replication into a non-read-only Cloud SQL MySQL instance where I can create another schema?