Replication local MySQL to Google Cloud SQL

129 views
Skip to first unread message

WooDzu

unread,
Feb 21, 2014, 9:01:17 AM2/21/14
to google-a...@googlegroups.com
Hello all,

I would like to setup Master-Slave replication with Clould SQL to backup our in-premises databases.

Am I right in thinking that Master-Slave replication needs the SUPER privilege which isn't available in Cloud SQL thus it cannot serve as SLAVE?

Peter

Vinny P

unread,
Feb 23, 2014, 12:17:15 PM2/23/14
to google-a...@googlegroups.com
On Fri, Feb 21, 2014 at 8:01 AM, WooDzu <wood...@gmail.com> wrote:
I would like to setup Master-Slave replication with Clould SQL to backup our in-premises databases.

Am I right in thinking that Master-Slave replication needs the SUPER privilege which isn't available in Cloud SQL thus it cannot serve as SLAVE?


You can't replicate to a Cloud SQL instance as a slave, see the overview section here: https://developers.google.com/cloud-sql/docs/replication#replication-overview

However, depending on the way your in-house machines are set up, it may be possible to set the Cloud SQL machine as master and then configure your in-house machines to serve as slaves. 
 
 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

WooDzu

unread,
Feb 23, 2014, 12:49:39 PM2/23/14
to google-a...@googlegroups.com
Yeah. It's a pitty Google didn't make it available.

Unfortunately we're not moving our apps to GAE yet for various reasons. Managed DBaaS with replication would certainly speed it up and allow for no-downtime move. The reason I'm asking this is purely instant cloud backup solution for our in-premises database.

Thanks,
Peter
EditShare

Reply all
Reply to author
Forward
0 new messages