mysql-on-google-cloud Google Cloud MySQL Integration with Edilitics

Leveraging MySQL for Google Cloud Platform (GCP) grants you the benefits of a familiar MySQL experience with the added advantages of scalability, high availability, and automated management offered by GCP. This empowers you to migrate existing MySQL workloads or establish new databases with regional deployments for optimal performance. Edilitics, a powerful data analytics platform, integrates effortlessly with your MySQL GCP database, unlocking valuable insights from your data for informed decision-making.

Within the Edilitics platform, MySQL GCP can be used both as a source and destination for data, making it a versatile tool for data analysis workflows. This enables you to leverage MySQL GCP's strengths for data storage and retrieval within your Edilitics environment.

This step-by-step guide equips you with the knowledge to configure your Google Cloud MySQL instance and integrate it with Edilitics for data analysis. To learn more about Google Cloud MySQL, visit the official Google Cloud MySQL website.


Before You Begin

Make sure you have the following:

  • A functional Google Cloud MySQL instance (version 5.6 or higher).
Google Cloud SQL instance list showing 'edilitics-sql' with MySQL 5.6, public IP 34.70.55.98, high availability enabled.
Google Cloud SQL instance list showing 'edilitics-sql' with MySQL 5.6, public IP 34.70.55.98, high availability enabled.
  • Binary Log (BinLog) replication enabled if using Change Data Capture (CDC) in Edilitics Replication.

  • Edilitics IP addresses whitelisted on your MySQL platform:

    • 34.131.133.218

    • 34.93.42.224


Setting Up MySQL on GCP for Edilitics Integration

Step 1: Enable Binary Log Replication

Binary logs act as chronological records of data modifications within your MySQL instance. Edilitics leverages BinLog replication for efficient data synchronization.

  • Access your Google Cloud MySQL instance through the Google Cloud Console.

  • In the left navigation pane, under Databases, locate and select Backups.

Google Cloud SQL instance 'edilitics-sql' settings showing automated backups enabled with a specified backup window and log retention.
Google Cloud SQL instance 'edilitics-sql' settings showing automated backups enabled with a specified backup window and log retention.
  • If Automated backups are disabled, follow these steps to enable BinLog replication:

    • Activate Automate backups and Enable point-in-time recovery options.

    • Save changes to confirm.

Google Cloud SQL 'edilitics-sql' backup settings showing automated daily backups and point-in-time recovery enabled.
Google Cloud SQL 'edilitics-sql' backup settings showing automated daily backups and point-in-time recovery enabled.
  • Verify that the Automated backups status now reflects Enabled.
Google Cloud SQL instance 'edilitics-sql' connections tab showing public IP selected and two authorized networks listed.
Google Cloud SQL instance 'edilitics-sql' connections tab showing public IP selected and two authorized networks listed.

Step 2: Whitelist Edilitics’ IP Addresses

To establish a connection, Edilitics requires whitelisting of its IP addresses for your specific region within Google Cloud.

  • Access the Google Cloud SQL Instances page and select the desired instance ID.
Google Cloud SQL instance list showing 'edilitics-sql' with MySQL 5.6, public IP 34.70.55.98, high availability enabled.
Google Cloud SQL instance list showing 'edilitics-sql' with MySQL 5.6, public IP 34.70.55.98, high availability enabled.
  • In the left navigation pane, choose Connections.

  • Navigate to the Networking tab and activate the Public IP checkbox.

Google Cloud SQL instance 'edilitics-sql' user management showing root user and an option to add a new user account.
Google Cloud SQL instance 'edilitics-sql' user management showing root user and an option to add a new user account.
  • Click ADD A NETWORK and provide the following details:

    • Name: Edilitics_1

    • Network: 34.131.133.218

  • Click Done and repeat for the second IP:

    • Name: Edilitics_2

    • Network: 34.93.42.224

  • Click Save to finalize the network configuration.

Google Cloud SQL 'edilitics-sql' add user form showing fields for username, password, and host name with 'Add' button.
Google Cloud SQL 'edilitics-sql' add user form showing fields for username, password, and host name with 'Add' button.

Step 3: Create a Database User and Grant Privileges

MySQL allows you to connect to Edilitics using an existing user or a new user configured within your Google Cloud MySQL instance.

Option 1: Using Google Cloud Console

  • Click on your primary Google Cloud MySQL instance.
Google Cloud SQL instance list showing 'edilitics-sql' with MySQL 5.6, public IP 34.70.55.98, high availability enabled.
Google Cloud SQL instance list showing 'edilitics-sql' with MySQL 5.6, public IP 34.70.55.98, high availability enabled.
  • In the left navigation pane, under Primary Instance, select Users, and then click + Add User Account.
Google Cloud SQL instance 'edilitics-sql' connections tab showing networking settings with public IP and authorized networks.
Google Cloud SQL instance 'edilitics-sql' connections tab showing networking settings with public IP and authorized networks.
  • Choose the authentication method, host name, and ensure a strong password is selected for the Edilitics user.

  • Click ADD.

Google Cloud SQL instance 'edilitics-sql' user management tab showing root user and an option to add a new user account.
Google Cloud SQL instance 'edilitics-sql' user management tab showing root user and an option to add a new user account.

Option 2: Using MySQL Client

  • Connect to your Google Cloud MySQL database as a root user with an SQL client tool, such as MySQL Workbench.

  • Create a database user:


    CREATE USER 'edilitics_user'@'%' IDENTIFIED BY '<password>';

  • Grant SELECT, REPLICATION CLIENT, and REPLICATION SLAVE privileges to the user:


    GRANT SELECT, REPLICATION CLIENT, REPLICATION SLAVE ON *.* TO 'edilitics_user'@'%';


Connecting Google Cloud MySQL to Edilitics

Step 4: Retrieve the Configuration Details

The following information is required to configure the MySQL GCP connector in Edilitics:

  • Hostname: Retrieved from the Google Cloud SQL Instances page under the Public IP address column for the master instance (or replica instance, depending on your setup).
Google Cloud SQL instance list showing 'edilitics-sql' with MySQL 5.6, public IP 34.70.55.98, high availability enabled.
Google Cloud SQL instance list showing 'edilitics-sql' with MySQL 5.6, public IP 34.70.55.98, high availability enabled.
  • Port: The port number used by your MySQL server (usually the default 3306).

  • Username and Password: Refer to the user creation step above.

  • Database Names: Accessible directly within the Google Cloud Console by navigating to the Databases tab in your MySQL instance.

Google Cloud SQL 'edilitics-sql' databases tab showing four databases: Company_Analytics_Data, information_schema, mysql, performance_schema.
Google Cloud SQL 'edilitics-sql' databases tab showing four databases: Company_Analytics_Data, information_schema, mysql, performance_schema.

Step 5: Add the MySQL GCP Connector in Edilitics

  • In Edilitics, navigate to the integrations module and locate the New Integration option.
Edilitics UI light theme showing sidebar and central area with 'No Integrations Yet' and a 'New Integration' button.
Edilitics UI light theme showing sidebar and central area with 'No Integrations Yet' and a 'New Integration' button.
  • Choose the MySQL GCP connector from the list or use the search bar to find it.
Edilitics UI light theme showing 'MySQL' search results with two integrations: MySQL and MySQL GCP, and sidebar with categories.
Edilitics UI light theme showing 'MySQL' search results with two integrations: MySQL and MySQL GCP, and sidebar with categories.

Step 6: Configure the MySQL GCP Connection

To connect, enter the following information on the next screen:

Field NameDetails
Integration TitleGive your integration a unique name to easily identify it within Edilitics.
Integration DescriptionBriefly describe the data you're integrating.
Database NameThe specific database name in your MySQL instance.
HostThe hostname or IP address of your MySQL server (retrieved in Step 4).
PortThe port number used by your MySQL server (usually the default 3306).
UsernameThe user account with permissions to access and read data from the specified database (created in Step 3).
PasswordThe corresponding password for the username provided.

Alternatively, you can connect using a connection string. Replace the placeholders with your details:


mysql://<username>:<password>@<host>:<port>/<database_name>


Step 7: Test the Connection

Once you've entered your credentials, click the Test Connection button. Edilitics will attempt to connect to your MySQL database. You'll see a confirmation message if the connection is successful. If there's a problem, Edilitics will provide details to help you troubleshoot.

Edilitics UI light theme showing MySQL GCP setup form with fields for name, host, port, username, password, and 'Test Connection' button.
Edilitics UI light theme showing MySQL GCP setup form with fields for name, host, port, username, password, and 'Test Connection' button.

Step 8: Verify & Finalize Integration

Upon successful database connection, you can:

  • Preview (Optional): Confirm accuracy by retrieving a sample of tables and data.

  • Update (Optional): If the preview deviates from expectations, modify connection details for correct data retrieval.

  • Save: Finalize by encrypting and storing connection details within Edilitics for future use.

Need Assistance? Edilitics Support is Here for You!

Our dedicated support team is ready to assist you. If you have any questions or need help using Edilitics, please don't hesitate to contact us at support@edilitics.com. We're committed to ensuring your success!

Don't just manage data, unlock its potential.

Choose Edilitics and gain a powerful advantage in today's data-driven world.