Question

I have one server where mysql is running, its a VM. I am currently configuring another mysql in in Amazon RDS. Can I use this RDS database as a slave of the VM database. So I want the VM DB to be the master of the replication and the RDS database be the slave.

Is it at all possible? Or any other option?

Was it helpful?

Solution

Yes it is possible, though this would not be a recommended setup.

RDS provides a built in procedure you can call to set this up. Rather than me explaining the procedure here, I will simply link you to the documentation.

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/mysql_rds_set_external_master.html

What this doesn't tell you is that you must have taken a consistent DB dump from the master DB and installed it on the RDS instance. You must also have obviously recorded the binary log position information when taking that consistent dump, so you have that information to use in the procedure.

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