> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# Hex

> Hex 支持对 数据库 中的内部数据和外部数据进行查询和可视化处理。

Hex 支持对 数据库 中的内部数据和外部数据进行查询和可视化处理。

在 Hex 中添加数据连接。注意需要选择 MySQL 作为连接类型。

![Hex](https://mintcdn.com/mirrorship-docs/8gpPdHU-sBXASb5i/documents/images/451cd4630cd86f75ec4a7e89.png?fit=max\&auto=format\&n=8gpPdHU-sBXASb5i\&q=85\&s=f981247f6ec525402f513d14337fee5f)

需要设置的参数说明如下：

* **Name**：数据连接的名称。
* **Host &** **port**：集群的 FE 主机 IP 地址和 FE 查询端口。查询端口可以设置为比如 `9030`。
* **Database**：集群中要访问的数据源。格式为 `<catalog_name>.<database_name>`。
  * `catalog_name`：集群中目标 Catalog 的名称。Internal Catalog 和 External Catalog 均支持。
  * `database_name`：集群中目标数据库的名称。内部数据库和外部数据库均支持。
* **Type**：鉴权方式。选择 **Password**。
* **User**：用于登录 集群的用户名，如 `admin`。
* **Password**：用于登录 集群的用户密码。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.