Google Cloud MySQL

Google Cloud SQL offers MySQL as a fully-managed web service. You can use Google Cloud SQL to host your MySQL database in Google Cloud Platform, and let Google Cloud handle administrative tasks such a replication, patch management, and database management for it.

You can ingest data from your Google Cloud MySQL database using Hevo Pipelines and replicate it to a Destination of your choice.


Setting up MySQL Binary Logs for Replication

A binary log is a collection of log files that records information about data modifications and data object modifications made on a MySQL server instance. Typically binary logs are used for data replication and data recovery.

Hevo supports data ingestion for replication from servers via binary logs (BinLog). For this, binary logging must be enabled on your Google Cloud MySQL server.

To do this:

1. Check if BinLog is already enabled

  1. Access your Google Cloud MySQL instance.

  2. In the left navigation pane, select Backups.

  3. In Settings, check the status of Automated backups.

  4. If the status is Disabled, follow the steps provided below to enable BinLog replication. If the status is Enabled, click Edit Settings and follow the steps provided below.

    Create backup if automated backup is disabled

2. Enable BinLog replication

  1. In Backups, Settings, click + CREATE BACKUP.
  2. In the Edit backup settings dialog:

    1. Select the Automate backups and Enable point-in-time recovery check boxes.

    2. Click SAVE to activate the changes.

  3. Check the status of Automated backups again under Settings. It should appear as shown below.

    Updated BinLog settings

This confirms that binary logging is now enabled for your Google Cloud MySQL instance.

Read BinLog Replication and BinLog Alerts.

The replication reference guide on MySQL’s documentation portal provides a complete reference of the options available for replication and binary logging.

Whitelisting Hevo’s IP Addresses

You need to whitelist the Hevo IP address for your region to enable Hevo to connect to your Google Cloud MySQL database:

  1. Access the Google Cloud MySQL Instances page and click on the Instance ID that you want to use.

    Select instance ID

  2. In the left navigation pane, click Connections.

  3. In the Connections page, select the Public IP checkbox.

    Add IP addresses to be whitelisted

  4. Specify the following in the Edit Network section and click Done:

    • Name: A name for this connection. For example, all or Hevo IP address.

    • Network: The IP address of the site to grant access to. Specify to authorize all sites or to specifically whitelist Hevo’s IP address. Check the Hevo IP address for your region.

    This adds the IP address to the list of Authorized networks.

  5. (Optional) Click Add network to add another I.P. address.
  6. Click Save.



Last updated on 21 Oct 2020