Question

I am migrating my active site's database to google and want to set up Google SQL as a replication slave to my existing MySQL database. I uploaded the whole 25GB database, and then went to enable replication, but got this error:

mysql> change master to master_host='REDACTED', master_user='REDACTED', master_password='REDACTED';

ERROR 1227 (42000): Access denied; you need (at least one of) the SUPER privilege(s) for this operation

I am stuck now with a database and service I can't use. I'd like to get these replicated so that I can migrate my app over next, get it working on the replicated slave, and then turn off my old provider.

Any suggestions on how to do this would be great.

Was it helpful?

Solution

Apologies - Cloud SQL does not have the ability to act as a slave to an on-premises database yet. A workaround is to use something like dbshards to perform the migration: http://googlecloudplatform.blogspot.com/2014/02/using-dbshards-and-cloud-sql-to-provide.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top