> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-postgresql-tls-support.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Azure Flexible Server for MySQL을 ClickPipes 소스로 설정합니다

# Azure Flexible Server for MySQL 소스 설정 가이드

export const Image = ({img, alt, size = "lg"}) => {
  const normalizedSize = ["sm", "md", "lg"].includes(size) ? size : "lg";
  return <div className={`ch-image-${normalizedSize}`}>
      <Frame>
        <img src={img} alt={alt} />
      </Frame>
    </div>;
};

이 단계별 가이드는 [MySQL ClickPipe](/ko/integrations/clickpipes/mysql/index)를 사용하여 Azure Flexible Server for MySQL의 데이터를 ClickHouse Cloud로 복제하도록 구성하는 방법을 설명합니다. 이 서비스에서는 **일회성 수집**만 지원합니다. MySQL CDC와 관련된 일반적인 질문은 [MySQL FAQ 페이지](/ko/integrations/clickpipes/mysql/faq)를 참조하십시오.

<Warning>
  이 서비스에서는 **CDC를 통한 지속적인 수집이 지원되지 않습니다**. Azure Flexible Server for MySQL은 [`binlog_row_metadata`](https://dev.mysql.com/doc/refman/en/replication-options-binary-log.html#sysvar_binlog_row_metadata) 시스템 변수를 `FULL`로 설정할 수 없으며, 이는 ClickPipes에서 전체 기능을 지원하는 MySQL CDC에 필요합니다.

  이 기능을 요청하려면 [Azure 피드백 포럼](https://feedback.azure.com/d365community/forum/47b1e71d-ee24-ec11-b6e6-000d3a4f0da0)에 기능 요청을 제출하고, [이 질문](https://learn.microsoft.com/en-us/answers/questions/766047/setting-binlog-row-metadata-to-full-in-azure-db-fo)에 추천을 남기거나, [Azure 지원](https://azure.microsoft.com/en-us/support/create-ticket/)에 문의하십시오.
</Warning>

<div id="configure-database-user">
  ## 데이터베이스 사용자 구성
</div>

관리자 사용자로 Azure Flexible Server for MySQL 인스턴스에 연결한 후, 다음 명령을 실행합니다:

1. ClickPipes 전용 사용자를 생성합니다:

   ```sql theme={null}
   CREATE USER 'clickpipes_user'@'%' IDENTIFIED BY 'some-password';
   ```

2. 스키마 권한을 부여합니다. 다음 예시는 `mysql` 데이터베이스에 대한 권한을 보여줍니다. 복제할 각 데이터베이스와 호스트에 대해 이 명령을 반복합니다:

   ```sql theme={null}
   GRANT SELECT ON `mysql`.* TO 'clickpipes_user'@'%';
   ```

3. 권한 변경 사항을 적용합니다:

   ```sql theme={null}
   FLUSH PRIVILEGES;
   ```

<div id="configure-network-access">
  ## 네트워크 액세스 구성
</div>

<Note>
  ClickPipes는 Azure Private Link 연결을 지원하지 않습니다. Azure Flexible Server for MySQL 인스턴스에 퍼블릭 액세스를 허용하지 않는 경우, 보안 연결을 위해 [SSH 터널을 사용할 수 있습니다](/ko/integrations/clickpipes/mysql/source/azure-flexible-server-mysql#configure-network-access). Azure Private Link는 향후 지원될 예정입니다.
</Note>

다음으로, ClickPipes에서 Azure Flexible Server for MySQL 인스턴스로 연결할 수 있도록 허용해야 합니다.

<Tabs>
  <Tab title="ClickPipes IP 허용">
    1. Azure Portal에서 **All resources**로 이동합니다. Azure Flexible Server for MySQL 인스턴스를 선택하여 **Overview** 페이지를 엽니다.

    2. **Settings**에서 **Networking**을 선택합니다. **Public access**가 활성화되어 있는지 확인합니다.

    3. **Firewall rules** 섹션에서 서비스가 배포된 Region에 해당하는 [ClickPipes 고정 IP 주소 목록](/ko/integrations/clickpipes/home#list-of-static-ips)을 입력합니다.

           <Image img="https://mintcdn.com/private-7c7dfe99-postgresql-tls-support/w-Unfx0B83cK7_6Z/images/integrations/data-ingestion/clickpipes/mysql/source/azure-flexible-server-mysql/1_configure_network_security.webp?fit=max&auto=format&n=w-Unfx0B83cK7_6Z&q=85&s=03f66c041913846d45a11fccf8696045" alt="IP 허용 목록을 사용해 퍼블릭 액세스용 네트워킹을 구성합니다" size="lg" border width="2984" height="1268" data-path="images/integrations/data-ingestion/clickpipes/mysql/source/azure-flexible-server-mysql/1_configure_network_security.webp" />

    4. **Save**를 클릭하여 네트워크 보안 구성 변경 사항을 저장합니다.
  </Tab>

  <Tab title="SSH 터널 사용">
    Azure Flexible Server for MySQL 인스턴스에 퍼블릭 액세스를 허용하지 않는 경우, 먼저 연결을 안전하게 터널링할 SSH 배스천 호스트를 설정해야 합니다. Azure에서 SSH 배스천 호스트를 설정하려면 다음 단계를 수행하십시오.

    1. [공식 문서](https://learn.microsoft.com/en-us/azure/virtual-machines/linux/quick-create-portal?tabs=ubuntu)를 따라 Azure 가상 머신(VM)을 생성하고 시작합니다.
       * VM이 Azure Flexible Server for MySQL 인스턴스와 동일한 가상 네트워크(VNet)에 있거나, 연결 가능한 피어링 VNet에 있는지 확인합니다.
       * VM에 [고정 퍼블릭 IP 주소](https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/virtual-network-public-ip-address)가 할당되어 있는지 확인합니다. ClickPipes를 SSH 배스천 호스트에 연결할 때 이 IP 주소를 사용합니다.

    2. 서비스가 배포된 Region에 해당하는 [ClickPipes 고정 IP 주소 목록](/ko/integrations/clickpipes/home#list-of-static-ips)에서 들어오는 트래픽을 허용하도록 SSH 배스천 호스트의 Network Security Group(NSG) 규칙을 업데이트합니다.

    3. SSH 배스천 호스트의 [프라이빗 IP 주소](https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/private-ip-addresses)에서 들어오는 트래픽을 허용하도록 Azure Flexible Server for MySQL 인스턴스의 firewall 규칙을 업데이트합니다.
  </Tab>
</Tabs>

<div id="whats-next">
  ## 다음 단계
</div>

이제 [ClickPipe를 생성](/ko/integrations/clickpipes/mysql/index)하고 Azure Flexible Server for MySQL 인스턴스의 데이터를 ClickHouse Cloud로 수집하기 시작할 수 있습니다. 인스턴스를 설정할 때 사용한 연결 정보를 반드시 기록해 두십시오. 이 정보는 ClickPipe 생성 과정에서 필요합니다.
