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

> QStudio는 무료 SQL 도구입니다.

# QStudio를 ClickHouse에 연결하기

export const CommunityMaintainedBadge = () => {
  return <div className="CommunityMaintainedBadge">
            <div className="CommunityMaintainedIcon">
            <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 256 256">
                <path d="M244.8,150.4a8,8,0,0,1-11.2-1.6A51.6,51.6,0,0,0,192,128a8,8,0,0,1-7.37-4.89,8,8,0,0,1,0-6.22A8,8,0,0,1,192,112a24,24,0,1,0-23.24-30,8,8,0,1,1-15.5-4A40,40,0,1,1,219,117.51a67.94,67.94,0,0,1,27.43,21.68A8,8,0,0,1,244.8,150.4ZM190.92,212a8,8,0,1,1-13.84,8,57,57,0,0,0-98.16,0,8,8,0,1,1-13.84-8,72.06,72.06,0,0,1,33.74-29.92,48,48,0,1,1,58.36,0A72.06,72.06,0,0,1,190.92,212ZM128,176a32,32,0,1,0-32-32A32,32,0,0,0,128,176ZM72,120a8,8,0,0,0-8-8A24,24,0,1,1,87.24,82a8,8,0,1,0,15.5-4A40,40,0,1,0,37,117.51,67.94,67.94,0,0,0,9.6,139.19a8,8,0,1,0,12.8,9.61A51.6,51.6,0,0,1,64,128,8,8,0,0,0,72,120Z"></path>
            </svg>
        </div>
            Community Maintained
        </div>;
};

export const Image = ({img, alt, size}) => {
  return <Frame>
      <img src={img} alt={alt} />
    </Frame>;
};

QStudio는 무료 SQL GUI로, SQL 스크립트를 실행하고 테이블을 쉽게 탐색하며 차트를 만들고 결과를 내보낼 수 있습니다. 모든 운영 체제와 모든 데이터베이스에서 사용할 수 있습니다.

QStudio는 JDBC를 사용해 ClickHouse에 연결합니다.

<div id="1-gather-your-clickhouse-details">
  ## 1. ClickHouse 연결 정보를 준비합니다
</div>

QStudio는 HTTP(S) 기반 JDBC를 사용해 ClickHouse에 연결하므로 다음 정보가 필요합니다.

* endpoint
* 포트 번호
* username
* password

HTTP(S)로 ClickHouse에 연결하려면 다음 정보가 필요합니다.

| 매개변수                      | 설명                                                         |
| ------------------------- | ---------------------------------------------------------- |
| `HOST` and `PORT`         | 일반적으로 TLS를 사용하는 경우 포트는 8443, TLS를 사용하지 않는 경우 8123입니다.      |
| `DATABASE NAME`           | 기본적으로 `default`라는 이름의 데이터베이스가 제공되며, 연결할 데이터베이스 이름을 사용하십시오. |
| `USERNAME` and `PASSWORD` | 기본 사용자 이름은 `default`입니다. 사용 사례에 맞는 사용자 이름을 사용하십시오.         |

ClickHouse Cloud 서비스의 연결 정보는 ClickHouse Cloud 콘솔에서 확인할 수 있습니다.
서비스를 선택한 다음 **Connect**를 클릭하십시오.

<Image img="https://mintcdn.com/private-7c7dfe99-fix-nav-issues/1oh4rjwfuHRS2yL2/images/_snippets/cloud-connect-button.png?fit=max&auto=format&n=1oh4rjwfuHRS2yL2&q=85&s=81c1524ac8ac2dac27e1558f13fcfd29" size="md" alt="ClickHouse Cloud 서비스 연결 버튼" border width="998" height="932" data-path="images/_snippets/cloud-connect-button.png" />

**HTTPS**를 선택하십시오. 연결 정보가 예시 `curl` 명령으로 표시됩니다.

<Image img="https://mintcdn.com/private-7c7dfe99-fix-nav-issues/1oh4rjwfuHRS2yL2/images/_snippets/connection-details-https.png?fit=max&auto=format&n=1oh4rjwfuHRS2yL2&q=85&s=335e19954512afe36d735a736cd32be7" size="md" alt="ClickHouse Cloud HTTPS 연결 정보" border width="1320" height="1184" data-path="images/_snippets/connection-details-https.png" />

자가 관리형 ClickHouse를 사용하는 경우 연결 정보는 ClickHouse 관리자가 설정합니다.

<div id="2-download-qstudio">
  ## 2. QStudio 다운로드
</div>

QStudio는 [https://www.timestored.com/qstudio/download/](https://www.timestored.com/qstudio/download/) 에서 다운로드할 수 있습니다.

<div id="3-add-a-database">
  ## 3. 데이터베이스 추가
</div>

* QStudio를 처음 열면 메뉴에서 **Server->Add Server**를 클릭하거나 도구 모음의 서버 추가 버튼을 클릭하십시오.
* 그런 다음 다음과 같이 설정하십시오:

<Image img="https://mintcdn.com/private-7c7dfe99-fix-nav-issues/ldyQZWT-cIRJh7wo/images/integrations/sql-clients/qstudio-add-connection.png?fit=max&auto=format&n=ldyQZWT-cIRJh7wo&q=85&s=1fc4bb82ee740c49dfeea807a6313262" size="lg" border alt="ClickHouse 연결 설정을 보여주는 QStudio 데이터베이스 연결 구성 화면" width="701" height="601" data-path="images/integrations/sql-clients/qstudio-add-connection.png" />

1. Server Type: Clickhouse.com
2. Host에는 반드시 [https://를](https://를) 포함해야 합니다
   Host: [https://abc.def.clickhouse.cloud](https://abc.def.clickhouse.cloud)
   Port: 8443
3. Username: default
   Password: `XXXXXXXXXXX`
4. Add를 클릭하십시오

QStudio가 ClickHouse JDBC 드라이버가 설치되지 않은 것을 감지하면, 해당 드라이버를 다운로드하도록 안내합니다:

<div id="4-query-clickhouse">
  ## 4. ClickHouse에서 쿼리 실행
</div>

* 쿼리 편집기를 열고 쿼리를 실행합니다. 쿼리는 다음 방법으로 실행할 수 있습니다.

* Ctrl + e - 선택한 텍스트를 실행합니다

* Ctrl + Enter - 현재 줄을 실행합니다

* 쿼리 예시:

<Image img="https://mintcdn.com/private-7c7dfe99-fix-nav-issues/ldyQZWT-cIRJh7wo/images/integrations/sql-clients/qstudio-running-query.png?fit=max&auto=format&n=ldyQZWT-cIRJh7wo&q=85&s=609f0e58012c3dd157d94e6a2ee1b18e" size="lg" border alt="ClickHouse 데이터베이스에 대해 예시 SQL 쿼리를 실행하는 QStudio 인터페이스" width="1283" height="721" data-path="images/integrations/sql-clients/qstudio-running-query.png" />

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

QStudio의 기능은 [QStudio](https://www.timestored.com/qstudio)에서, ClickHouse의 기능은 [ClickHouse documentation](/ko/)에서 확인할 수 있습니다.
