8
n8n 한국어amn8n.com

MySQL 행 동기화至 Google Sheets

중급

이것은Engineering분야의자동화 워크플로우로, 9개의 노드를 포함합니다.주로 If, MySql, GoogleSheets, ScheduleTrigger 등의 노드를 사용하며. 중복 방지 기능 포함 MySQL에서 Google Sheets로 자동 동기화

사전 요구사항
  • MySQL 데이터베이스 연결 정보
  • Google Sheets API 인증 정보

카테고리

워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "id": "TmP9EhlzHlU4r1wS",
  "meta": {
    "instanceId": "ea2b41532677d34614d95d13d7d2ccb694657be482144baf71e7140df3b2a853",
    "templateCredsSetupCompleted": true
  },
  "name": "Sync MySQL Rows to Google Sheet",
  "tags": [],
  "nodes": [
    {
      "id": "a78b4dc6-b4c6-4ed8-8b9f-dad0a6897307",
      "name": "테이블에서 행 선택",
      "type": "n8n-nodes-base.mySql",
      "position": [
        -288,
        -112
      ],
      "parameters": {
        "table": {
          "value": "fifa25_customers"
        },
        "where": {
          "values": [
            {
              "value": "=0",
              "column": "sync"
            }
          ]
        },
        "options": {},
        "operation": "select"
      },
      "credentials": {
        "mySql": {
          "id": "HiSdj9EQPLInFlnQ",
          "name": "MySQL-SaadeddinPastry"
        }
      },
      "typeVersion": 2.4
    },
    {
      "id": "b1a1e46f-4d7f-4068-a697-e35735af7718",
      "name": "시트에 행 추가",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        352,
        -304
      ],
      "parameters": {
        "columns": {
          "value": {
            "id": "={{ $json.id }}",
            "name": "={{ $json.name }}",
            "email": "={{ $json.email }}",
            "phone": "={{ $json.phone }}",
            "gender": "={{ $json.gender }}",
            "region": "={{ $json.region }}",
            "datatime": "={{ $json.datatime }}",
            "birthdate": "={{ $json.birthdate }}"
          },
          "schema": [
            {
              "id": "id",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "id",
              "defaultMatch": true,
              "canBeUsedToMatch": true
            },
            {
              "id": "name",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "phone",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "phone",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "birthdate",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "birthdate",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "email",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "email",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "region",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "region",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "gender",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "gender",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "datatime",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "datatime",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "id"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "value": "gid=0"
        },
        "documentId": {
          "value": "1b86B_7Hcusp7ehDNjJZtCa8Rlmljf2av7Hs-gaSluoc"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "KJ3WD4ZJZo6YMqm3",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "e7f77e58-ddfc-4086-8016-6ebdd9d01d44",
      "name": "테이블에서 행 업데이트",
      "type": "n8n-nodes-base.mySql",
      "position": [
        352,
        -128
      ],
      "parameters": {
        "table": {
          "value": "fifa25_customers"
        },
        "options": {},
        "dataMode": "defineBelow",
        "operation": "update",
        "valuesToSend": {
          "values": [
            {
              "value": "1",
              "column": "sync"
            }
          ]
        },
        "valueToMatchOn": "={{ $json.id }}",
        "columnToMatchOn": "id"
      },
      "credentials": {
        "mySql": {
          "id": "HiSdj9EQPLInFlnQ",
          "name": "MySQL-SaadeddinPastry"
        }
      },
      "typeVersion": 2.4
    },
    {
      "id": "0aba12f9-2627-4be1-bd53-1505d332f352",
      "name": "스티커 메모",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -336,
        48
      ],
      "parameters": {
        "color": 3,
        "width": 208,
        "height": 80,
        "content": "Get 50 records from mysql table from not synced data"
      },
      "typeVersion": 1
    },
    {
      "id": "2ad57e58-7f42-4ef3-8d3a-228fc8ab422b",
      "name": "Schedule Trigger Every n Mins",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -528,
        -112
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 15
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "b52eebd6-1177-414e-8062-1204ac643dc9",
      "name": "스티커 메모1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        304,
        16
      ],
      "parameters": {
        "color": 3,
        "width": 208,
        "height": 80,
        "content": "Update all the got data with column sync = 1 to prevent duplication in next run"
      },
      "typeVersion": 1
    },
    {
      "id": "13a3b1e5-32b2-436f-9961-d924c9d052ef",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        352,
        160
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f82d841b-fbda-4eed-80e5-15fa83a6cc00",
      "name": "새 레코드 반환 확인",
      "type": "n8n-nodes-base.if",
      "position": [
        -80,
        -112
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "fdc56e38-29be-42a1-baa8-3c4e2380b2c1",
              "operator": {
                "type": "number",
                "operation": "gt"
              },
              "leftValue": "={{ $jmespath($input.all(), '[].json').length }}",
              "rightValue": 0
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "d35b54c0-1bde-43d8-ad95-e79c9a5b3957",
      "name": "스티커 메모2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        176,
        -352
      ],
      "parameters": {
        "width": 400,
        "height": 656,
        "content": "## Output"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "75f1c88c-35cb-4762-ba78-e19a2ca167bd",
  "connections": {
    "a78b4dc6-b4c6-4ed8-8b9f-dad0a6897307": {
      "main": [
        [
          {
            "node": "f82d841b-fbda-4eed-80e5-15fa83a6cc00",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f82d841b-fbda-4eed-80e5-15fa83a6cc00": {
      "main": [
        [
          {
            "node": "b1a1e46f-4d7f-4068-a697-e35735af7718",
            "type": "main",
            "index": 0
          },
          {
            "node": "e7f77e58-ddfc-4086-8016-6ebdd9d01d44",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "13a3b1e5-32b2-436f-9961-d924c9d052ef",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2ad57e58-7f42-4ef3-8d3a-228fc8ab422b": {
      "main": [
        [
          {
            "node": "a78b4dc6-b4c6-4ed8-8b9f-dad0a6897307",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

이 워크플로우를 어떻게 사용하나요?

위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.

이 워크플로우는 어떤 시나리오에 적합한가요?

중급 - 엔지니어링

유료인가요?

이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.

워크플로우 정보
난이도
중급
노드 수9
카테고리1
노드 유형6
난이도 설명

일정 경험을 가진 사용자를 위한 6-15개 노드의 중간 복잡도 워크플로우

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34