Requirement
- Aurora cluster connecting to WRITER endpoint
Create DB Parameter Group
Edit DB Parameter Group
Select that DB Parameter group you made and edit the following parameters:
Create DB Cluster Parameter Group
Edit DB Cluster Parameter Group
Configure The Instance
Attach the DB Parameter Group to your Aurora cluster. From the list of Aurora clusters, select the Aurora cluster you want to modify. Then click on Modify. You will need to change the DB Parameter Group and the DB Cluster Parameter Group to the one you just created. Finally, click the check box for Apply Immediately, confirm the changes, and Modify.
Create user for Sync
CREATE USER 'flydata'@'%' IDENTIFIED BY '<your_password>';
Grant necessary privileges,
GRANT SELECT, RELOAD, REPLICATION SLAVE, REPLICATION CLIENT, LOCK TABLES ON *.* TO 'flydata'@'%';
FLUSH PRIVILEGES;
Increase binlog retention
CALL mysql.rds_set_configuration('binlog retention hours', 168);