Share
Google Cloud SQL Server (Edge) Setup Guide

Google Cloud SQL Server is a fully-managed database service that helps you set up, maintain, manage, and administer your SQL Server relational databases on Google Cloud Platform.

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


Prerequisites


Perform the following steps to configure your Google Cloud SQL Server Source:

Add Hevo IP Addresses to your Database Allowlist

You need to allowlist the Hevo IP address for your region to enable Hevo to connect to your Google Cloud SQL Server database. To do this:

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

    Click instance

  2. In the left navigation pane, under Overview, click Connections.

  3. In the Connections page, select the Public IP check box, and then, click + Add Network.

    Add network

  4. Specify the following in the Edit Network section:

    • 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 0.0.0.0/0 to authorize all sites or your region’s IP address to specifically whitelist Hevo’s IP address.

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

  5. (Optional) Click + Add network to add another IP address.

  6. Click Save.


Create a User and Grant Privileges

Option 1. Configuring the user account using Google Cloud console

  1. Click the master Google Cloud SQL Server instance.

    Click instance

  2. In the left navigation pane, under Connections, click the Users tab, and then, click + ADD USER ACCOUNT.

    Click add user account

  3. Specify the user account information and click ADD.

    Click ADD

    You will specify this username and password while creating your Hevo Pipeline.

Option 2. Configuring the user account using SQL Server client

Log in to your SQL Server instance as masteruser using your preferred SQL Server client tool, and enter the following commands:

  1. Log in to the database schema where you want to add the user:

    USE <schema_name>;
    
  2. (Optional) Create a login user.

    Note: You can skip this step if you want to use the existing login user to create a new database user.

    CREATE LOGIN '<login_user>' WITH PASSWORD = '<password>';
    
  3. Create a new database user and grant read privileges:

    CREATE USER hevo for login <master_username>;
    EXEC sp_addrolemember 'db_datareader', 'hevo';
    

Retrieve the Configuration Details (Optional)

Refer to the steps below to gather the configuration details required to create your Hevo Pipeline:

1. Retrieve the hostname and port number

Note: Following is an example of Google Cloud SQL Server hostname and port number:
Host : 35.220.150.0
Port : 1433

  1. Access the Google Cloud SQL Instances page.

  2. Locate the hostname of the master instance under the Public IP address column.

    The default port value is 1433.

    Locate hostname

    You will specify these while creating your Hevo Pipeline.

2. Retrieve the username and password

To retrieve your username and password, follow the steps in section, Create a User and Grant Privileges.

3. Retrieve the database names

  1. Access the Google Cloud SQL Instances page.

  2. Click your database instance, and then, click the Databases tab.

    Locate database

In this page, you can locate the name of your database under the Name column.


Specify Google Cloud SQL Server Connection Settings

  1. In the Configure your Google Cloud SQL Server Source page, specify the following:

    GCloud SQL Server settings

    • Source Name: A unique name for your Source, not exceeding 50 characters. For example, Google Cloud SQL Server.

    • Database Host: SQL Server host’s IP address or DNS.

      Note: For URL-based hostnames, exclude the http:// or https:// part. For example, if the hostname URL is https://mssql.database.windows.net, enter mssql.database.windows.net.

    • Database Port: The port on which your SQL Server is listening for connections. Default value: 1433.

    • Database User: The read-only user who has the permissions to read tables in your database.

    • Database Password: The password for the read-only user.

    • Database Name: The database that you wish to replicate.

    • Connect through SSH: Enable this option to connect to Hevo using an SSH tunnel, instead of directly connecting your SQL Server database host to Hevo. This provides an additional level of security to your database by not exposing your SQL Server setup to the public. Read Connecting Through SSH.

      If this option is disabled, you must configure your Source to accept connections from Hevo’s IP addresses.

    • Additional Settings

      • Connect through SSH: Enable this option to connect to Hevo using an SSH tunnel instead of directly connecting your Google Cloud SQL Server database host to Hevo. This provides an additional level of security to your database by not exposing your Google Cloud SQL Server setup to the public. Read Connecting Through SSH.
        If this option is turned off, you must configure your Source to accept connections from Hevo’s IP addresses.

      • Use SSL: Enable this option to use an SSL-encrypted connection. Specify the following:

        • CA File: The file containing the SSL server certificate authority (CA).

        • Client Certificate: The client’s public key certificate file.

        • Client Key: The client’s private key file.

  2. Click Test & Continue.

Last updated on Dec 17, 2024

Tell us what went wrong

Skip to the section