⚒️ Automated MySQL to Google Sheets sync with duplicate prevention

760 views · ⚒️ Engineering

Description

📝 Sync MySQL Rows to Google Sheet

Description:

This n8n template automates the process of syncing new records from a MySQL database table into a Google Sheet, ideal for reporting, backup, or lightweight dashboards.

It is designed for teams or individuals who need to periodically export new data rows from a custom database (e.g., CRM, registrations, surveys) into a structured Google Sheet for further analysis, sharing, or archiving—without duplicates.


🛠️ What This Workflow Does:


📋 Setup Instructions:

  1. Create or select a Google Sheet and make sure the columns match the following:

    • id, name, phone, birthdate, email, region, gender, datatime
  2. Ensure your MySQL table (fifa25_customers) has a sync column (default = 0 for new rows).

  3. Connect your MySQL and Google Sheets credentials inside n8n.

  4. (Optional): Add custom filtering or column transformations as needed.


👤 Who Is It For?


🔐 Credentials Required:


Best Practices Followed:

🔗 Nodes Used

Google Sheets, MySQL, Schedule Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup