Skip to main content

Sync Google Sheets data with MySQL

Workflow preview

Workflow preview
100%
Sync Google Sheets data with MySQL preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow performs several data integration and synchronization tasks between Google Sheets and a MySQL database. Here is a step by step description of what this workflow does: 1. Manual Trigge...

Best for

  • Engineering automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.comparedatasets, n8n-nodes-base.noop, n8n-nodes-base.scheduletrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.mysql, n8n-nodes-base.set, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by n8n Team.

Original n8n.io source

1.1 Workflow description

Title
Sync Google Sheets data with MySQL
Workflow name
Sync Google Sheets data with MySQL

This workflow performs several data integration and synchronization tasks between Google Sheets and a MySQL database.

Here is a step-by-step description of what this workflow does:

  1. Manual Trigger: The workflow starts when the user clicks "Execute Workflow."
  2. Schedule Trigger: This node schedules the workflow to run at specific intervals on weekdays (Monday to Friday) between 6 AM and 10 PM. It ensures regular data synchronization.
  3. Google Sheet Data: This node connects to a specific Google Sheets document and retrieves data from the "Form Responses 1" sheet, filtering by the "DB Status" column.
  4. SQL Get inquiries from Google: This node retrieves data from a MySQL database table named "ConcertInquiries" where the "source_name" is "GoogleForm."
  5. Rename GSheet variables: This node renames the columns retrieved from Google Sheets and transforms the data into a format suitable for MySQL, assigning a value for "source_name" as "GoogleForm."
  6. Compare Datasets: This node compares the data retrieved from Google Sheets and the MySQL database based on timestamp and source_name fields. It identifies changes and updates.
  7. No reply too long?: This node checks if there has been no reply within the last four hours, using the "timestamp" field from the Google Sheets data.
  8. DB Status assigned?: This node checks if the "DB Status" field is not empty in the compared dataset.
  9. Update GSheet status: If conditions are met in the previous nodes, this node updates the "DB Status" field in Google Sheets with the corresponding value from the MySQL dataset.
  10. DB Status in sync?: This node checks if the "source_name" field in Google Sheets is not empty.
  11. Sync MySQL data: If conditions are met in the previous nodes, this node updates the "source_name" field in the MySQL database to "GoogleFormSync."
  12. Send Notifications: If conditions are met in the "No reply too long?" node, this node sends notifications or performs actions as needed.
  13. Sticky Notes: These nodes provide additional information and documentation links for users.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking "Execute Workflow"

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Compare Datasets

Type / Role
n8n-nodes-base.compareDatasets - compareDatasets
Config choices
Version 2.3

Block 3 - Send Notifications

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 4 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.1

Block 5 - Google Sheet Data

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4

Block 6 - SQL Get inquiries from Google

Type / Role
n8n-nodes-base.mySql - mySql
Config choices
Version 2.2

Block 7 - Add MySQL records

Type / Role
n8n-nodes-base.mySql - mySql
Config choices
Version 2.2

Block 8 - Rename GSheet variables

Type / Role
n8n-nodes-base.set - set
Config choices
Version 2

Block 9 - No reply too long?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 10 - DB Status assigned?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 11 - Update GSheet status

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4

Block 12 - DB Status in sync?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 13 - Sync MySQL data

Type / Role
n8n-nodes-base.mySql - mySql
Config choices
Version 2.2

Block 14 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Sync Google Sheets data with MySQL
Complexity advanced
Nodes 15
Categories Engineering
Author n8n Team
Published 06 Oct 2023

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/1964/1964.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Sync Google Sheets data with MySQL do?

This workflow performs several data integration and synchronization tasks between Google Sheets and a MySQL database. Here is a step by step description of what this workflow does: 1. Manual Trigge...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering use case.