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

# MySQL

> MySQL关系型数据库连接配置

## Create MySQL data source

On the data source management page, click **New data source**.

Select data source type: **MySQL**, and then configure the following details:

| Attributes               | English             | Description                                                                                                      |
| ------------------------ | ------------------- | ---------------------------------------------------------------------------------------------------------------- |
| Name                     | **Name**            | Data source name, keep it unique                                                                                 |
| Use local agent          | **Use Local Agent** | Whether to use local agent to connect to the data source, otherwise use the server to connect to the data source |
| Host                     | **Host**            | Host address domain name or IP                                                                                   |
| Port number              | **Port**            | Service port number                                                                                              |
| User name                | **User Name**       | Account used to connect to the data source                                                                       |
| Password                 | **Password**        | Account and password used to connect to the data source                                                          |
| Use encrypted connection | **Use SSL**         | Whether to use encrypted connection                                                                              |
| CA certificate           | **CA certificate**  | Client certificate                                                                                               |
