> ## Documentation Index
> Fetch the complete documentation index at: https://www.integrate.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Aurora MySQL source for ELT & CDC

> Configure Aurora MySQL as a data source in Integrate.io ELT & CDC. Set up binary log replication from your Aurora MySQL database instances.

## Requirement

* Aurora cluster connecting to WRITER endpoint

### Create DB Parameter Group

On AWS console, create a DB Parameter Group for your Aurora cluster. This allows you to create a collection of parameters you can later attach to your cluster. Click Create Parameter Groups, name its group name and description as you like, and click Save.

![Creating a new DB Parameter Group in the AWS RDS console](https://mintcdn.com/integrateio/SIDFEDRgXpxG0yrn/images/cdc/sources/image-65.png?fit=max\&auto=format\&n=SIDFEDRgXpxG0yrn\&q=85\&s=46f7fbda98cb9d7f9fc014c746d10138)

**Edit DB Parameter Group**

Select that DB Parameter group you made and edit the following parameters:

![Editing DB Parameter Group settings for Aurora MySQL binlog](https://mintcdn.com/integrateio/SIDFEDRgXpxG0yrn/images/cdc/sources/image-66.png?fit=max\&auto=format\&n=SIDFEDRgXpxG0yrn\&q=85\&s=b6b7b8aac9b33c8964122378ca7a0baf)

![DB Parameter Group parameter values after editing](https://mintcdn.com/integrateio/SIDFEDRgXpxG0yrn/images/cdc/sources/image-67.png?fit=max\&auto=format\&n=SIDFEDRgXpxG0yrn\&q=85\&s=0ee498df6d4de2274c781a8d93b43dcd)

### Create DB Cluster Parameter Group

Next step is to create a **DB Cluster Parameter Group** for your Aurora cluster. This allows you to create a collection of parameters you can later attach to your cluster. First click **Parameter Groups** from the left pane, name its group name and description as you like, and hit **Save.**

![Creating a new DB Cluster Parameter Group in the AWS RDS console](https://mintcdn.com/integrateio/SIDFEDRgXpxG0yrn/images/cdc/sources/image-68.png?fit=max\&auto=format\&n=SIDFEDRgXpxG0yrn\&q=85\&s=5f61e701fab27c95afc3835243e11389)

### Edit DB Cluster Parameter Group

Select that DB Cluster Parameter Group you made and edit the following parameters:

![Editing DB Cluster Parameter Group binlog settings](https://mintcdn.com/integrateio/SIDFEDRgXpxG0yrn/images/cdc/sources/image-69.png?fit=max\&auto=format\&n=SIDFEDRgXpxG0yrn\&q=85\&s=9f6c30fb347b4b233e50d490249e4fdc)

![DB Cluster Parameter Group updated parameter values](https://mintcdn.com/integrateio/SIDFEDRgXpxG0yrn/images/cdc/sources/image-69.png?fit=max\&auto=format\&n=SIDFEDRgXpxG0yrn\&q=85\&s=9f6c30fb347b4b233e50d490249e4fdc)

![Additional DB Cluster Parameter Group configuration parameters](https://mintcdn.com/integrateio/SIDFEDRgXpxG0yrn/images/cdc/sources/image-71.png?fit=max\&auto=format\&n=SIDFEDRgXpxG0yrn\&q=85\&s=2ad91452db0b42cafb1d3b104db79c81)

![Saved DB Cluster Parameter Group configuration overview](https://mintcdn.com/integrateio/SIDFEDRgXpxG0yrn/images/cdc/sources/image-72.png?fit=max\&auto=format\&n=SIDFEDRgXpxG0yrn\&q=85\&s=40dd72b57dd7e1808e8cedf12aca493b)

### 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 **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**.

![Modifying the Aurora cluster to attach the new parameter groups](https://mintcdn.com/integrateio/SIDFEDRgXpxG0yrn/images/cdc/sources/image-72.png?fit=max\&auto=format\&n=SIDFEDRgXpxG0yrn\&q=85\&s=40dd72b57dd7e1808e8cedf12aca493b)

![Confirming parameter group changes with Apply Immediately selected](https://mintcdn.com/integrateio/SIDFEDRgXpxG0yrn/images/cdc/sources/image-73.png?fit=max\&auto=format\&n=SIDFEDRgXpxG0yrn\&q=85\&s=021734e454c7a08e21f139694255f4fc)

## Create user for Sync

On your sourceDB, create a sync user for Integrate.io by executing,

```sql theme={null}
CREATE USER 'flydata'@'%' IDENTIFIED BY '<your_password>';
```

Grant necessary privileges,

```sql theme={null}
GRANT SELECT, RELOAD, REPLICATION SLAVE, REPLICATION CLIENT, LOCK TABLES ON *.* TO 'flydata'@'%';
FLUSH PRIVILEGES;
```

## Increase binlog retention

To increase the binlog retention of the DB cluster, use the mysql\_rds\_set\_configuration procedure. You can run the following command and sample parameters on the writer instance to retain the binlog files for 7 days:

```sql theme={null}
CALL mysql.rds_set_configuration('binlog retention hours', 168);
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.